command-t 1.9.1 → 1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.txt +241 -101
- data/doc/command-t.txt +241 -101
- data/doc/tags +11 -0
- data/plugin/command-t.vim +2 -22
- data/ruby/command-t/Makefile +21 -22
- data/ruby/command-t/controller.rb +49 -28
- data/ruby/command-t/depend +2 -22
- data/ruby/command-t/ext.bundle +0 -0
- data/ruby/command-t/ext.c +2 -22
- data/ruby/command-t/ext.h +2 -22
- data/ruby/command-t/extconf.rb +2 -22
- data/ruby/command-t/finder.rb +2 -22
- data/ruby/command-t/finder/buffer_finder.rb +2 -22
- data/ruby/command-t/finder/file_finder.rb +2 -22
- data/ruby/command-t/finder/jump_finder.rb +2 -22
- data/ruby/command-t/finder/mru_buffer_finder.rb +2 -22
- data/ruby/command-t/finder/tag_finder.rb +6 -22
- data/ruby/command-t/match.c +6 -23
- data/ruby/command-t/match.h +3 -22
- data/ruby/command-t/match_window.rb +8 -27
- data/ruby/command-t/matcher.c +11 -25
- data/ruby/command-t/matcher.h +2 -22
- data/ruby/command-t/mru.rb +2 -22
- data/ruby/command-t/prompt.rb +18 -22
- data/ruby/command-t/ruby_compat.h +2 -22
- data/ruby/command-t/scanner.rb +2 -22
- data/ruby/command-t/scanner/buffer_scanner.rb +2 -22
- data/ruby/command-t/scanner/file_scanner.rb +2 -22
- data/ruby/command-t/scanner/file_scanner/find_file_scanner.rb +2 -22
- data/ruby/command-t/scanner/file_scanner/ruby_file_scanner.rb +2 -22
- data/ruby/command-t/scanner/file_scanner/watchman_file_scanner.rb +2 -22
- data/ruby/command-t/scanner/jump_scanner.rb +2 -22
- data/ruby/command-t/scanner/mru_buffer_scanner.rb +2 -22
- data/ruby/command-t/scanner/tag_scanner.rb +8 -23
- data/ruby/command-t/settings.rb +2 -22
- data/ruby/command-t/stub.rb +2 -22
- data/ruby/command-t/util.rb +2 -22
- data/ruby/command-t/vim.rb +2 -22
- data/ruby/command-t/vim/path_utilities.rb +2 -22
- data/ruby/command-t/vim/screen.rb +2 -22
- data/ruby/command-t/vim/window.rb +2 -22
- data/ruby/command-t/watchman.c +2 -22
- data/ruby/command-t/watchman.h +2 -22
- metadata +17 -17
data/doc/tags
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
command-t command-t.txt /*command-t*
|
8
8
|
command-t-authors command-t.txt /*command-t-authors*
|
9
9
|
command-t-commands command-t.txt /*command-t-commands*
|
10
|
+
command-t-compile command-t.txt /*command-t-compile*
|
10
11
|
command-t-contents command-t.txt /*command-t-contents*
|
11
12
|
command-t-development command-t.txt /*command-t-development*
|
12
13
|
command-t-donations command-t.txt /*command-t-donations*
|
@@ -16,23 +17,31 @@ command-t-installation command-t.txt /*command-t-installation*
|
|
16
17
|
command-t-intro command-t.txt /*command-t-intro*
|
17
18
|
command-t-license command-t.txt /*command-t-license*
|
18
19
|
command-t-mappings command-t.txt /*command-t-mappings*
|
20
|
+
command-t-neobundle command-t.txt /*command-t-neobundle*
|
19
21
|
command-t-options command-t.txt /*command-t-options*
|
20
22
|
command-t-pathogen command-t.txt /*command-t-pathogen*
|
21
23
|
command-t-requirements command-t.txt /*command-t-requirements*
|
22
24
|
command-t-tips command-t.txt /*command-t-tips*
|
23
25
|
command-t-trouble-shooting command-t.txt /*command-t-trouble-shooting*
|
24
26
|
command-t-usage command-t.txt /*command-t-usage*
|
27
|
+
command-t-vam command-t.txt /*command-t-vam*
|
28
|
+
command-t-vundle command-t.txt /*command-t-vundle*
|
25
29
|
command-t-website command-t.txt /*command-t-website*
|
26
30
|
command-t-wildignore command-t.txt /*command-t-wildignore*
|
27
31
|
command-t.txt command-t.txt /*command-t.txt*
|
32
|
+
g:CommandTAcceptSelectionCommand command-t.txt /*g:CommandTAcceptSelectionCommand*
|
28
33
|
g:CommandTAcceptSelectionMap command-t.txt /*g:CommandTAcceptSelectionMap*
|
34
|
+
g:CommandTAcceptSelectionSplitCommand command-t.txt /*g:CommandTAcceptSelectionSplitCommand*
|
29
35
|
g:CommandTAcceptSelectionSplitMap command-t.txt /*g:CommandTAcceptSelectionSplitMap*
|
36
|
+
g:CommandTAcceptSelectionTabCommand command-t.txt /*g:CommandTAcceptSelectionTabCommand*
|
30
37
|
g:CommandTAcceptSelectionTabMap command-t.txt /*g:CommandTAcceptSelectionTabMap*
|
31
38
|
g:CommandTAcceptSelectionVSplitMap command-t.txt /*g:CommandTAcceptSelectionVSplitMap*
|
39
|
+
g:CommandTAcceptSelectionVsplitCommand command-t.txt /*g:CommandTAcceptSelectionVsplitCommand*
|
32
40
|
g:CommandTAlwaysShowDotFiles command-t.txt /*g:CommandTAlwaysShowDotFiles*
|
33
41
|
g:CommandTBackspaceMap command-t.txt /*g:CommandTBackspaceMap*
|
34
42
|
g:CommandTCancelMap command-t.txt /*g:CommandTCancelMap*
|
35
43
|
g:CommandTClearMap command-t.txt /*g:CommandTClearMap*
|
44
|
+
g:CommandTClearPrevWordMap command-t.txt /*g:CommandTClearPrevWordMap*
|
36
45
|
g:CommandTCursorEndMap command-t.txt /*g:CommandTCursorEndMap*
|
37
46
|
g:CommandTCursorLeftMap command-t.txt /*g:CommandTCursorLeftMap*
|
38
47
|
g:CommandTCursorRightMap command-t.txt /*g:CommandTCursorRightMap*
|
@@ -40,6 +49,7 @@ g:CommandTCursorStartMap command-t.txt /*g:CommandTCursorStartMap*
|
|
40
49
|
g:CommandTDeleteMap command-t.txt /*g:CommandTDeleteMap*
|
41
50
|
g:CommandTFileScanner command-t.txt /*g:CommandTFileScanner*
|
42
51
|
g:CommandTHighlightColor command-t.txt /*g:CommandTHighlightColor*
|
52
|
+
g:CommandTIgnoreCase command-t.txt /*g:CommandTIgnoreCase*
|
43
53
|
g:CommandTInputDebounce command-t.txt /*g:CommandTInputDebounce*
|
44
54
|
g:CommandTMatchWindowAtTop command-t.txt /*g:CommandTMatchWindowAtTop*
|
45
55
|
g:CommandTMatchWindowReverse command-t.txt /*g:CommandTMatchWindowReverse*
|
@@ -54,6 +64,7 @@ g:CommandTRefreshMap command-t.txt /*g:CommandTRefreshMap*
|
|
54
64
|
g:CommandTScanDotDirectories command-t.txt /*g:CommandTScanDotDirectories*
|
55
65
|
g:CommandTSelectNextMap command-t.txt /*g:CommandTSelectNextMap*
|
56
66
|
g:CommandTSelectPrevMap command-t.txt /*g:CommandTSelectPrevMap*
|
67
|
+
g:CommandTSmartCase command-t.txt /*g:CommandTSmartCase*
|
57
68
|
g:CommandTTagIncludeFilenames command-t.txt /*g:CommandTTagIncludeFilenames*
|
58
69
|
g:CommandTToggleFocusMap command-t.txt /*g:CommandTToggleFocusMap*
|
59
70
|
g:CommandTWildIgnore command-t.txt /*g:CommandTWildIgnore*
|
data/plugin/command-t.vim
CHANGED
@@ -1,25 +1,5 @@
|
|
1
|
-
" Copyright 2010-2014
|
2
|
-
"
|
3
|
-
" Redistribution and use in source and binary forms, with or without
|
4
|
-
" modification, are permitted provided that the following conditions are met:
|
5
|
-
"
|
6
|
-
" 1. Redistributions of source code must retain the above copyright notice,
|
7
|
-
" this list of conditions and the following disclaimer.
|
8
|
-
" 2. Redistributions in binary form must reproduce the above copyright notice,
|
9
|
-
" this list of conditions and the following disclaimer in the documentation
|
10
|
-
" and/or other materials provided with the distribution.
|
11
|
-
"
|
12
|
-
" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
13
|
-
" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
14
|
-
" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
15
|
-
" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
|
16
|
-
" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
17
|
-
" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
18
|
-
" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
19
|
-
" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
20
|
-
" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
21
|
-
" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
|
-
" POSSIBILITY OF SUCH DAMAGE.
|
1
|
+
" Copyright 2010-2014 Greg Hurrell. All rights reserved.
|
2
|
+
" Licensed under the terms of the BSD 2-clause license.
|
23
3
|
|
24
4
|
if exists("g:command_t_loaded") || &cp
|
25
5
|
finish
|
data/ruby/command-t/Makefile
CHANGED
@@ -11,12 +11,12 @@ ECHO = $(ECHO1:0=@echo)
|
|
11
11
|
#### Start of system configuration section. ####
|
12
12
|
|
13
13
|
srcdir = .
|
14
|
-
topdir = /Users/glh/.rbenv/versions/2.
|
14
|
+
topdir = /Users/glh/.rbenv/versions/2.0.0-p451/include/ruby-2.0.0
|
15
15
|
hdrdir = $(topdir)
|
16
|
-
arch_hdrdir = /Users/glh/.rbenv/versions/2.
|
16
|
+
arch_hdrdir = /Users/glh/.rbenv/versions/2.0.0-p451/include/ruby-2.0.0/x86_64-darwin13.1.0
|
17
17
|
PATH_SEPARATOR = :
|
18
18
|
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
19
|
-
prefix =
|
19
|
+
prefix = /Users/glh/.rbenv/versions/2.0.0-p451
|
20
20
|
rubysitearchprefix = $(rubylibprefix)/$(sitearch)
|
21
21
|
rubyarchprefix = $(rubylibprefix)/$(arch)
|
22
22
|
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
@@ -49,7 +49,7 @@ dvidir = $(docdir)
|
|
49
49
|
htmldir = $(docdir)
|
50
50
|
infodir = $(datarootdir)/info
|
51
51
|
docdir = $(datarootdir)/doc/$(PACKAGE)
|
52
|
-
oldincludedir =
|
52
|
+
oldincludedir = /usr/include
|
53
53
|
includedir = $(prefix)/include
|
54
54
|
localstatedir = $(prefix)/var
|
55
55
|
sharedstatedir = $(prefix)/com
|
@@ -67,7 +67,7 @@ CXX = g++
|
|
67
67
|
LIBRUBY = $(LIBRUBY_A)
|
68
68
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
69
69
|
LIBRUBYARG_SHARED =
|
70
|
-
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
70
|
+
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
71
71
|
empty =
|
72
72
|
OUTFLAG = -o $(empty)
|
73
73
|
COUTFLAG = -o $(empty)
|
@@ -76,14 +76,14 @@ RUBY_EXTCONF_H =
|
|
76
76
|
cflags = $(optflags) $(debugflags) $(warnflags)
|
77
77
|
optflags = -O3 -fno-fast-math
|
78
78
|
debugflags = -ggdb3
|
79
|
-
warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration
|
79
|
+
warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration
|
80
80
|
CCDLFLAGS = -fno-common
|
81
81
|
CFLAGS = $(CCDLFLAGS) -O3 -Wno-error=shorten-64-to-32 -pipe $(ARCH_FLAG)
|
82
82
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
83
83
|
DEFS = -DWATCHMAN_BUILD
|
84
|
-
CPPFLAGS = -DHAVE_FCNTL_H -DHAVE_SYS_ERRNO_H -DHAVE_SYS_SOCKET_H -DHAVE_RUBY_ST_H -DHAVE_ST_H -I/Users/glh/.rbenv/versions/2.
|
84
|
+
CPPFLAGS = -DHAVE_FCNTL_H -DHAVE_SYS_ERRNO_H -DHAVE_SYS_SOCKET_H -DHAVE_RUBY_ST_H -DHAVE_ST_H -I/Users/glh/.rbenv/versions/2.0.0-p451/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)
|
85
85
|
CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG)
|
86
|
-
ldflags = -L. -L/Users/glh/.rbenv/versions/2.
|
86
|
+
ldflags = -L. -L/Users/glh/.rbenv/versions/2.0.0-p451/lib
|
87
87
|
dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress
|
88
88
|
ARCH_FLAG =
|
89
89
|
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
@@ -99,12 +99,12 @@ RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
|
|
99
99
|
RUBYW_BASE_NAME = rubyw
|
100
100
|
RUBY_BASE_NAME = ruby
|
101
101
|
|
102
|
-
arch = x86_64-darwin13.0
|
102
|
+
arch = x86_64-darwin13.1.0
|
103
103
|
sitearch = $(arch)
|
104
|
-
ruby_version = 2.
|
104
|
+
ruby_version = 2.0.0
|
105
105
|
ruby = $(bindir)/ruby
|
106
106
|
RUBY = $(ruby)
|
107
|
-
ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/
|
107
|
+
ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
|
108
108
|
|
109
109
|
RM = rm -f
|
110
110
|
RM_RF = $(RUBY) -run -e rm -- -rf
|
@@ -144,13 +144,12 @@ DLLIB = $(TARGET).bundle
|
|
144
144
|
EXTSTATIC =
|
145
145
|
STATIC_LIB =
|
146
146
|
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
147
|
+
BINDIR = $(DESTDIR)$(bindir)
|
148
|
+
RUBYCOMMONDIR = $(DESTDIR)$(sitedir)$(target_prefix)
|
149
|
+
RUBYLIBDIR = $(DESTDIR)$(sitelibdir)$(target_prefix)
|
150
|
+
RUBYARCHDIR = $(DESTDIR)$(sitearchdir)$(target_prefix)
|
151
|
+
HDRDIR = $(DESTDIR)$(rubyhdrdir)/ruby$(target_prefix)
|
152
|
+
ARCHHDRDIR = $(DESTDIR)$(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
154
153
|
|
155
154
|
TARGET_SO = $(DLLIB)
|
156
155
|
CLEANLIBS = $(TARGET).bundle
|
@@ -180,7 +179,7 @@ distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
|
|
180
179
|
realclean: distclean
|
181
180
|
install: install-so install-rb
|
182
181
|
|
183
|
-
install-so: $(DLLIB)
|
182
|
+
install-so: $(DLLIB) ./.RUBYARCHDIR.time
|
184
183
|
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
185
184
|
clean-static::
|
186
185
|
-$(Q)$(RM) $(STATIC_LIB)
|
@@ -190,8 +189,8 @@ pre-install-rb: Makefile
|
|
190
189
|
pre-install-rb-default: Makefile
|
191
190
|
pre-install-rb-default:
|
192
191
|
$(ECHO) installing default ext libraries
|
193
|
-
|
194
|
-
$(Q) $(MAKEDIRS) $(
|
192
|
+
./.RUBYARCHDIR.time:
|
193
|
+
$(Q) $(MAKEDIRS) $(RUBYARCHDIR)
|
195
194
|
$(Q) $(TOUCH) $@
|
196
195
|
|
197
196
|
site-install: site-install-so site-install-rb
|
@@ -232,7 +231,7 @@ $(DLLIB): $(OBJS) Makefile
|
|
232
231
|
$(ECHO) linking shared-object $(DLLIB)
|
233
232
|
-$(Q)$(RM) $(@)
|
234
233
|
$(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
235
|
-
$(Q) $(
|
234
|
+
$(Q) test -z '$(RUBY_CODESIGN)' || codesign -s '$(RUBY_CODESIGN)' -f $@
|
236
235
|
|
237
236
|
|
238
237
|
|
@@ -1,25 +1,5 @@
|
|
1
|
-
# Copyright 2010-2014
|
2
|
-
#
|
3
|
-
# Redistribution and use in source and binary forms, with or without
|
4
|
-
# modification, are permitted provided that the following conditions are met:
|
5
|
-
#
|
6
|
-
# 1. Redistributions of source code must retain the above copyright notice,
|
7
|
-
# this list of conditions and the following disclaimer.
|
8
|
-
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
9
|
-
# this list of conditions and the following disclaimer in the documentation
|
10
|
-
# and/or other materials provided with the distribution.
|
11
|
-
#
|
12
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
13
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
14
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
15
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
|
16
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
17
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
18
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
19
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
20
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
21
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
1
|
+
# Copyright 2010-2014 Greg Hurrell. All rights reserved.
|
2
|
+
# Licensed under the terms of the BSD 2-clause license.
|
23
3
|
|
24
4
|
require 'command-t/finder/buffer_finder'
|
25
5
|
require 'command-t/finder/jump_finder'
|
@@ -75,7 +55,7 @@ module CommandT
|
|
75
55
|
end
|
76
56
|
|
77
57
|
def hide
|
78
|
-
@match_window.
|
58
|
+
@match_window.leave
|
79
59
|
if VIM::Window.select @initial_window
|
80
60
|
if @initial_buffer.number == 0
|
81
61
|
# upstream bug: buffer number misreported as 0
|
@@ -165,6 +145,11 @@ module CommandT
|
|
165
145
|
list_matches!
|
166
146
|
end
|
167
147
|
|
148
|
+
def clear_prev_word
|
149
|
+
@prompt.clear_prev_word!
|
150
|
+
list_matches!
|
151
|
+
end
|
152
|
+
|
168
153
|
def cursor_left
|
169
154
|
@prompt.cursor_left if @focus == @prompt
|
170
155
|
end
|
@@ -194,14 +179,27 @@ module CommandT
|
|
194
179
|
|
195
180
|
@matches = @active_finder.sorted_matches_for(
|
196
181
|
@prompt.abbrev,
|
197
|
-
:
|
198
|
-
:
|
182
|
+
:case_sensitive => case_sensitive?,
|
183
|
+
:limit => match_limit,
|
184
|
+
:threads => CommandT::Util.processor_count
|
199
185
|
)
|
200
186
|
@match_window.matches = @matches
|
201
187
|
|
202
188
|
@needs_update = false
|
203
189
|
end
|
204
190
|
|
191
|
+
def tab_command
|
192
|
+
get_string('g:CommandTAcceptSelectionTabCommand') || 'tabe'
|
193
|
+
end
|
194
|
+
|
195
|
+
def split_command
|
196
|
+
get_string('g:CommandTAcceptSelectionSplitCommand') || 'sp'
|
197
|
+
end
|
198
|
+
|
199
|
+
def vsplit_command
|
200
|
+
get_string('g:CommandTAcceptSelectionVSplitCommand') || 'vs'
|
201
|
+
end
|
202
|
+
|
205
203
|
private
|
206
204
|
|
207
205
|
def list_matches!
|
@@ -237,6 +235,26 @@ module CommandT
|
|
237
235
|
end
|
238
236
|
end
|
239
237
|
|
238
|
+
def case_sensitive?
|
239
|
+
if @prompt.abbrev.match(/[A-Z]/)
|
240
|
+
if VIM::exists?('g:CommandTSmartCase')
|
241
|
+
smart_case = get_bool('g:CommandTSmartCase')
|
242
|
+
else
|
243
|
+
smart_case = get_bool('&smartcase')
|
244
|
+
end
|
245
|
+
|
246
|
+
if smart_case
|
247
|
+
return true
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
if VIM::exists?('g:CommandTIgnoreCase')
|
252
|
+
return !get_bool('g:CommandTIgnoreCase')
|
253
|
+
end
|
254
|
+
|
255
|
+
false
|
256
|
+
end
|
257
|
+
|
240
258
|
def get_number(name, default = nil)
|
241
259
|
VIM::exists?(name) ? ::VIM::evaluate("#{name}").to_i : default
|
242
260
|
end
|
@@ -268,10 +286,12 @@ module CommandT
|
|
268
286
|
end
|
269
287
|
|
270
288
|
def default_open_command
|
271
|
-
if !get_bool('&
|
272
|
-
'
|
289
|
+
if !get_bool('&modified') ||
|
290
|
+
get_bool('&hidden') ||
|
291
|
+
get_bool('&autowriteall') && !get_bool('&readonly')
|
292
|
+
get_string('g:CommandTAcceptSelectionCommand') || 'e'
|
273
293
|
else
|
274
|
-
'
|
294
|
+
'sp'
|
275
295
|
end
|
276
296
|
end
|
277
297
|
|
@@ -334,6 +354,7 @@ module CommandT
|
|
334
354
|
'Backspace' => '<BS>',
|
335
355
|
'Cancel' => ['<C-c>', '<Esc>'],
|
336
356
|
'Clear' => '<C-u>',
|
357
|
+
'ClearPrevWord' => '<C-w>',
|
337
358
|
'CursorEnd' => '<C-e>',
|
338
359
|
'CursorLeft' => ['<Left>', '<C-h>'],
|
339
360
|
'CursorRight' => ['<Right>', '<C-l>'],
|
data/ruby/command-t/depend
CHANGED
@@ -1,24 +1,4 @@
|
|
1
|
-
# Copyright 2010-2014
|
2
|
-
#
|
3
|
-
# Redistribution and use in source and binary forms, with or without
|
4
|
-
# modification, are permitted provided that the following conditions are met:
|
5
|
-
#
|
6
|
-
# 1. Redistributions of source code must retain the above copyright notice,
|
7
|
-
# this list of conditions and the following disclaimer.
|
8
|
-
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
9
|
-
# this list of conditions and the following disclaimer in the documentation
|
10
|
-
# and/or other materials provided with the distribution.
|
11
|
-
#
|
12
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
13
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
14
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
15
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
|
16
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
17
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
18
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
19
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
20
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
21
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
1
|
+
# Copyright 2010-2014 Greg Hurrell. All rights reserved.
|
2
|
+
# Licensed under the terms of the BSD 2-clause license.
|
23
3
|
|
24
4
|
CFLAGS += -Wall -Wextra -Wno-unused-parameter
|
data/ruby/command-t/ext.bundle
CHANGED
Binary file
|
data/ruby/command-t/ext.c
CHANGED
@@ -1,25 +1,5 @@
|
|
1
|
-
// Copyright 2010-2014
|
2
|
-
//
|
3
|
-
// Redistribution and use in source and binary forms, with or without
|
4
|
-
// modification, are permitted provided that the following conditions are met:
|
5
|
-
//
|
6
|
-
// 1. Redistributions of source code must retain the above copyright notice,
|
7
|
-
// this list of conditions and the following disclaimer.
|
8
|
-
// 2. Redistributions in binary form must reproduce the above copyright notice,
|
9
|
-
// this list of conditions and the following disclaimer in the documentation
|
10
|
-
// and/or other materials provided with the distribution.
|
11
|
-
//
|
12
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
13
|
-
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
14
|
-
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
15
|
-
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
|
16
|
-
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
17
|
-
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
18
|
-
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
19
|
-
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
20
|
-
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
21
|
-
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
|
-
// POSSIBILITY OF SUCH DAMAGE.
|
1
|
+
// Copyright 2010-2014 Greg Hurrell. All rights reserved.
|
2
|
+
// Licensed under the terms of the BSD 2-clause license.
|
23
3
|
|
24
4
|
#include "matcher.h"
|
25
5
|
#include "watchman.h"
|
data/ruby/command-t/ext.h
CHANGED
@@ -1,25 +1,5 @@
|
|
1
|
-
// Copyright 2010-2014
|
2
|
-
//
|
3
|
-
// Redistribution and use in source and binary forms, with or without
|
4
|
-
// modification, are permitted provided that the following conditions are met:
|
5
|
-
//
|
6
|
-
// 1. Redistributions of source code must retain the above copyright notice,
|
7
|
-
// this list of conditions and the following disclaimer.
|
8
|
-
// 2. Redistributions in binary form must reproduce the above copyright notice,
|
9
|
-
// this list of conditions and the following disclaimer in the documentation
|
10
|
-
// and/or other materials provided with the distribution.
|
11
|
-
//
|
12
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
13
|
-
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
14
|
-
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
15
|
-
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
|
16
|
-
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
17
|
-
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
18
|
-
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
19
|
-
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
20
|
-
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
21
|
-
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
|
-
// POSSIBILITY OF SUCH DAMAGE.
|
1
|
+
// Copyright 2010-2014 Greg Hurrell. All rights reserved.
|
2
|
+
// Licensed under the terms of the BSD 2-clause license.
|
23
3
|
|
24
4
|
#include <ruby.h>
|
25
5
|
|
data/ruby/command-t/extconf.rb
CHANGED
@@ -1,25 +1,5 @@
|
|
1
|
-
# Copyright 2010-2014
|
2
|
-
#
|
3
|
-
# Redistribution and use in source and binary forms, with or without
|
4
|
-
# modification, are permitted provided that the following conditions are met:
|
5
|
-
#
|
6
|
-
# 1. Redistributions of source code must retain the above copyright notice,
|
7
|
-
# this list of conditions and the following disclaimer.
|
8
|
-
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
9
|
-
# this list of conditions and the following disclaimer in the documentation
|
10
|
-
# and/or other materials provided with the distribution.
|
11
|
-
#
|
12
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
13
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
14
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
15
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
|
16
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
17
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
18
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
19
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
20
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
21
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
1
|
+
# Copyright 2010-2014 Greg Hurrell. All rights reserved.
|
2
|
+
# Licensed under the terms of the BSD 2-clause license.
|
23
3
|
|
24
4
|
require 'mkmf'
|
25
5
|
|
data/ruby/command-t/finder.rb
CHANGED
@@ -1,25 +1,5 @@
|
|
1
|
-
# Copyright 2010-
|
2
|
-
#
|
3
|
-
# Redistribution and use in source and binary forms, with or without
|
4
|
-
# modification, are permitted provided that the following conditions are met:
|
5
|
-
#
|
6
|
-
# 1. Redistributions of source code must retain the above copyright notice,
|
7
|
-
# this list of conditions and the following disclaimer.
|
8
|
-
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
9
|
-
# this list of conditions and the following disclaimer in the documentation
|
10
|
-
# and/or other materials provided with the distribution.
|
11
|
-
#
|
12
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
13
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
14
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
15
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
|
16
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
17
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
18
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
19
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
20
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
21
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
22
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
1
|
+
# Copyright 2010-2014 Greg Hurrell. All rights reserved.
|
2
|
+
# Licensed under the terms of the BSD 2-clause license.
|
23
3
|
|
24
4
|
require 'command-t/ext' # CommandT::Matcher
|
25
5
|
|