command-t 2.0 → 3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9c92f460a44bb7554c990bf9d06c5f3b3ad8891
4
- data.tar.gz: 27f3ef68e47d9621c0e4216ea8d6a10d435d0cab
3
+ metadata.gz: 9f43cff05f4b7fb5cee397afe9e655341ba56693
4
+ data.tar.gz: 45effde9a057610772730347288bee7ce50b771c
5
5
  SHA512:
6
- metadata.gz: f9f0e3ace3dc7a0d2b1d991f3f8173a8e1bf702714bd3fc03b2016f5ce6099f3fd9f5bc00b5900bbda169064c5c11ea612464de42ee84385ed8cbf309310b0af
7
- data.tar.gz: fc06e1678ac22c9b5ea73ec90a9bba6919fc7a3954b42e4aee2fc911e0a4445589bf772abd2a23918fe5da27fd3f9544169104f142ed64f9f1505000dbb41679
6
+ metadata.gz: d0bc741a72d54ab985c0aa56a3c3087415a33a5381bef81b8fb3b881fb1d2aa295d8e8f3bd3519fa0bac9dc2131ae3c71cc0324c85d68f296f0bee84dc9c80ee
7
+ data.tar.gz: faf635537a2f10b47cce6eb6f42f60d37e8aba84a7bbbaa9fd4f36f3ce52eaf6127ff42810899319fcf4481e77ebc147eff0eb7f3c0195ca43ac5ece051b40d3
data/README.txt CHANGED
@@ -39,10 +39,6 @@ called. This means narrowing your search down by including some characters
39
39
  from the upper path components rather than just entering characters from the
40
40
  filename itself.
41
41
 
42
- Screencasts demonstrating the plug-in can be viewed at:
43
-
44
- https://wincent.com/products/command-t
45
-
46
42
 
47
43
  REQUIREMENTS *command-t-requirements*
48
44
 
@@ -182,13 +178,13 @@ If you manage your entire `~/.vim` folder using Git then you can add the
182
178
  Command-T repository as a submodule:
183
179
 
184
180
  cd ~/.vim
185
- git submodule add git://git.wincent.com/command-t.git bundle/command-t
181
+ git submodule add https://github.com/wincent/command-t.git bundle/command-t
186
182
  git submodule init
187
183
 
188
184
  Or if you just wish to do a simple clone instead of using submodules:
189
185
 
190
186
  cd ~/.vim
191
- git clone git://git.wincent.com/command-t.git bundle/command-t
187
+ git clone https://github.com/wincent/command-t.git bundle/command-t
192
188
 
193
189
  Once you have a local copy of the repository you can update it at any time
194
190
  with:
@@ -628,7 +624,7 @@ Following is a list of all available options:
628
624
  there is no limit on the number of cached directories.
629
625
 
630
626
  *g:CommandTMaxHeight*
631
- |g:CommandTMaxHeight| number (default: 0)
627
+ |g:CommandTMaxHeight| number (default: 15)
632
628
 
633
629
  The maximum height in lines the match window is allowed to expand to.
634
630
  If set to 0, the window will occupy as much of the available space as
@@ -760,19 +756,20 @@ Following is a list of all available options:
760
756
  When this setting is off (the default) the match window will appear at
761
757
  the bottom so as to keep it near to the prompt. Turning it on causes the
762
758
  match window to appear at the top instead. This may be preferable if you
763
- want the best match (usually the first one) to appear in a fixed location
764
- on the screen rather than moving as the number of matches changes during
759
+ if you have |g:CommandTMatchWindowReverse| set to 0 and want the best
760
+ match (usually the first one) to appear in a fixed location on the
761
+ screen rather than moving as the number of matches changes during
765
762
  typing.
766
763
 
767
764
  *g:CommandTMatchWindowReverse*
768
- |g:CommandTMatchWindowReverse| boolean (default: 0)
765
+ |g:CommandTMatchWindowReverse| boolean (default: 1)
769
766
 
770
- When this setting is off (the default) the matches will appear from
771
- top to bottom with the topmost being selected. Turning it on causes the
772
- matches to be reversed so the best match is at the bottom and the
773
- initially selected match is the bottom most. This may be preferable if
774
- you want the best match to appear in a fixed location on the screen
775
- but still be near the prompt at the bottom.
767
+ When this setting is on (the default), matches will be shown in reverse
768
+ order, with the best match at the bottom (ie. closest to the prompt).
769
+ The initially selected match will be the bottom-most, which is
770
+ preferable if you want the best match to appear in a fixed location on
771
+ the screen (independently of the number of results). When set to 0,
772
+ matches will appear from top to bottom with the topmost being selected.
776
773
 
777
774
  *g:CommandTTagIncludeFilenames*
778
775
  |g:CommandTTagIncludeFilenames| boolean (default: 0)
@@ -892,11 +889,10 @@ Following is a list of all available options:
892
889
  "ASCII-8BIT".
893
890
 
894
891
  *g:CommandTIgnoreSpaces*
895
- |g:CommandTIgnoreSpaces| boolean (default: 0)
892
+ |g:CommandTIgnoreSpaces| boolean (default: 1)
896
893
 
897
- When typing a search term into Command-T, use this option to have it
898
- ignore spaces. Without this option set, it will search for literal
899
- spaces inside file names.
894
+ When typing a search term into Command-T, ignore spaces. When set to 0,
895
+ Command-T will search for literal spaces inside file names.
900
896
 
901
897
  As well as the basic options listed above, there are a number of settings that
902
898
  can be used to override the default key mappings used by Command-T. For
@@ -1242,7 +1238,7 @@ kind of ongoing calibration will come quite naturally.
1242
1238
  Finally, it is important to be on a relatively recent version of Command-T to
1243
1239
  fully benefit from the available performance enhancements:
1244
1240
 
1245
- - version 2.0a (not yet released) added the |g:CommandTRecursiveMatch| option
1241
+ - version 2.0 (December 2015) added the |g:CommandTRecursiveMatch| option
1246
1242
  - version 1.10 (July 2014) added the |g:CommandTIgnoreCase| and
1247
1243
  |g:CommandTSmartCase| options
1248
1244
  - version 1.9 (May 2014) tweaked memoization algorithm for a 10% speed boost
@@ -1307,19 +1303,19 @@ LustyExplorer is available from:
1307
1303
 
1308
1304
  DEVELOPMENT *command-t-development*
1309
1305
 
1310
- Development in progress can be inspected via the project's Git web-based
1311
- repository browser at:
1306
+ Development in progress can be inspected at:
1312
1307
 
1313
- https://wincent.com/repos/command-t
1308
+ https://github.com/wincent/command-t
1314
1309
 
1315
1310
  the clone URL for which is:
1316
1311
 
1317
- git://git.wincent.com/command-t.git
1312
+ https://github.com/wincent/command-t.git
1318
1313
 
1319
- A mirror exists on GitHub, which is automatically updated once per hour from
1320
- the authoritative repository:
1314
+ Mirrors exist on GitLab and BitBucket, and are automatically updated once per
1315
+ hour:
1321
1316
 
1322
- https://github.com/wincent/command-t
1317
+ https://gitlab.com/wincent/command-t
1318
+ https://bitbucket.org/ghurrell/command-t
1323
1319
 
1324
1320
  Patches are welcome via the usual mechanisms (pull requests, email, posting to
1325
1321
  the project issue tracker etc).
@@ -1340,9 +1336,11 @@ WEBSITE *command-t-website*
1340
1336
 
1341
1337
  The official website for Command-T is:
1342
1338
 
1343
- https://wincent.com/products/command-t
1339
+ https://github.com/wincent/command-t
1340
+
1341
+ The latest release will always be available from:
1344
1342
 
1345
- The latest release will always be available from there.
1343
+ https://github.com/wincent/command-t/releases
1346
1344
 
1347
1345
  A copy of each release is also available from the official Vim scripts site
1348
1346
  at:
@@ -1351,7 +1349,7 @@ at:
1351
1349
 
1352
1350
  Bug reports should be submitted to the issue tracker at:
1353
1351
 
1354
- https://wincent.com/issues
1352
+ https://github.com/wincent/command-t/issues
1355
1353
 
1356
1354
 
1357
1355
  LICENSE *command-t-license*
@@ -1381,6 +1379,14 @@ POSSIBILITY OF SUCH DAMAGE.
1381
1379
 
1382
1380
  HISTORY *command-t-history*
1383
1381
 
1382
+ 3.0 (19 January 2015)
1383
+
1384
+ - change |g:CommandTIgnoreSpaces| default value to 1.
1385
+ - change |g:CommandTMatchWindowReverse| default value to 1.
1386
+ - change |g:CommandTMaxHeight| default value to 15.
1387
+ - try harder to avoid scrolling other buffer when showing or hiding the match
1388
+ listing
1389
+
1384
1390
  2.0 (28 December 2015)
1385
1391
 
1386
1392
  - add |:CommandTIgnoreSpaces| option (patch from KJ Tsanaktsidis)
data/doc/command-t.txt CHANGED
@@ -39,10 +39,6 @@ called. This means narrowing your search down by including some characters
39
39
  from the upper path components rather than just entering characters from the
40
40
  filename itself.
41
41
 
42
- Screencasts demonstrating the plug-in can be viewed at:
43
-
44
- https://wincent.com/products/command-t
45
-
46
42
 
47
43
  REQUIREMENTS *command-t-requirements*
48
44
 
@@ -182,13 +178,13 @@ If you manage your entire `~/.vim` folder using Git then you can add the
182
178
  Command-T repository as a submodule:
183
179
 
184
180
  cd ~/.vim
185
- git submodule add git://git.wincent.com/command-t.git bundle/command-t
181
+ git submodule add https://github.com/wincent/command-t.git bundle/command-t
186
182
  git submodule init
187
183
 
188
184
  Or if you just wish to do a simple clone instead of using submodules:
189
185
 
190
186
  cd ~/.vim
191
- git clone git://git.wincent.com/command-t.git bundle/command-t
187
+ git clone https://github.com/wincent/command-t.git bundle/command-t
192
188
 
193
189
  Once you have a local copy of the repository you can update it at any time
194
190
  with:
@@ -628,7 +624,7 @@ Following is a list of all available options:
628
624
  there is no limit on the number of cached directories.
629
625
 
630
626
  *g:CommandTMaxHeight*
631
- |g:CommandTMaxHeight| number (default: 0)
627
+ |g:CommandTMaxHeight| number (default: 15)
632
628
 
633
629
  The maximum height in lines the match window is allowed to expand to.
634
630
  If set to 0, the window will occupy as much of the available space as
@@ -760,19 +756,20 @@ Following is a list of all available options:
760
756
  When this setting is off (the default) the match window will appear at
761
757
  the bottom so as to keep it near to the prompt. Turning it on causes the
762
758
  match window to appear at the top instead. This may be preferable if you
763
- want the best match (usually the first one) to appear in a fixed location
764
- on the screen rather than moving as the number of matches changes during
759
+ if you have |g:CommandTMatchWindowReverse| set to 0 and want the best
760
+ match (usually the first one) to appear in a fixed location on the
761
+ screen rather than moving as the number of matches changes during
765
762
  typing.
766
763
 
767
764
  *g:CommandTMatchWindowReverse*
768
- |g:CommandTMatchWindowReverse| boolean (default: 0)
765
+ |g:CommandTMatchWindowReverse| boolean (default: 1)
769
766
 
770
- When this setting is off (the default) the matches will appear from
771
- top to bottom with the topmost being selected. Turning it on causes the
772
- matches to be reversed so the best match is at the bottom and the
773
- initially selected match is the bottom most. This may be preferable if
774
- you want the best match to appear in a fixed location on the screen
775
- but still be near the prompt at the bottom.
767
+ When this setting is on (the default), matches will be shown in reverse
768
+ order, with the best match at the bottom (ie. closest to the prompt).
769
+ The initially selected match will be the bottom-most, which is
770
+ preferable if you want the best match to appear in a fixed location on
771
+ the screen (independently of the number of results). When set to 0,
772
+ matches will appear from top to bottom with the topmost being selected.
776
773
 
777
774
  *g:CommandTTagIncludeFilenames*
778
775
  |g:CommandTTagIncludeFilenames| boolean (default: 0)
@@ -892,11 +889,10 @@ Following is a list of all available options:
892
889
  "ASCII-8BIT".
893
890
 
894
891
  *g:CommandTIgnoreSpaces*
895
- |g:CommandTIgnoreSpaces| boolean (default: 0)
892
+ |g:CommandTIgnoreSpaces| boolean (default: 1)
896
893
 
897
- When typing a search term into Command-T, use this option to have it
898
- ignore spaces. Without this option set, it will search for literal
899
- spaces inside file names.
894
+ When typing a search term into Command-T, ignore spaces. When set to 0,
895
+ Command-T will search for literal spaces inside file names.
900
896
 
901
897
  As well as the basic options listed above, there are a number of settings that
902
898
  can be used to override the default key mappings used by Command-T. For
@@ -1242,7 +1238,7 @@ kind of ongoing calibration will come quite naturally.
1242
1238
  Finally, it is important to be on a relatively recent version of Command-T to
1243
1239
  fully benefit from the available performance enhancements:
1244
1240
 
1245
- - version 2.0a (not yet released) added the |g:CommandTRecursiveMatch| option
1241
+ - version 2.0 (December 2015) added the |g:CommandTRecursiveMatch| option
1246
1242
  - version 1.10 (July 2014) added the |g:CommandTIgnoreCase| and
1247
1243
  |g:CommandTSmartCase| options
1248
1244
  - version 1.9 (May 2014) tweaked memoization algorithm for a 10% speed boost
@@ -1307,19 +1303,19 @@ LustyExplorer is available from:
1307
1303
 
1308
1304
  DEVELOPMENT *command-t-development*
1309
1305
 
1310
- Development in progress can be inspected via the project's Git web-based
1311
- repository browser at:
1306
+ Development in progress can be inspected at:
1312
1307
 
1313
- https://wincent.com/repos/command-t
1308
+ https://github.com/wincent/command-t
1314
1309
 
1315
1310
  the clone URL for which is:
1316
1311
 
1317
- git://git.wincent.com/command-t.git
1312
+ https://github.com/wincent/command-t.git
1318
1313
 
1319
- A mirror exists on GitHub, which is automatically updated once per hour from
1320
- the authoritative repository:
1314
+ Mirrors exist on GitLab and BitBucket, and are automatically updated once per
1315
+ hour:
1321
1316
 
1322
- https://github.com/wincent/command-t
1317
+ https://gitlab.com/wincent/command-t
1318
+ https://bitbucket.org/ghurrell/command-t
1323
1319
 
1324
1320
  Patches are welcome via the usual mechanisms (pull requests, email, posting to
1325
1321
  the project issue tracker etc).
@@ -1340,9 +1336,11 @@ WEBSITE *command-t-website*
1340
1336
 
1341
1337
  The official website for Command-T is:
1342
1338
 
1343
- https://wincent.com/products/command-t
1339
+ https://github.com/wincent/command-t
1340
+
1341
+ The latest release will always be available from:
1344
1342
 
1345
- The latest release will always be available from there.
1343
+ https://github.com/wincent/command-t/releases
1346
1344
 
1347
1345
  A copy of each release is also available from the official Vim scripts site
1348
1346
  at:
@@ -1351,7 +1349,7 @@ at:
1351
1349
 
1352
1350
  Bug reports should be submitted to the issue tracker at:
1353
1351
 
1354
- https://wincent.com/issues
1352
+ https://github.com/wincent/command-t/issues
1355
1353
 
1356
1354
 
1357
1355
  LICENSE *command-t-license*
@@ -1381,6 +1379,14 @@ POSSIBILITY OF SUCH DAMAGE.
1381
1379
 
1382
1380
  HISTORY *command-t-history*
1383
1381
 
1382
+ 3.0 (19 January 2015)
1383
+
1384
+ - change |g:CommandTIgnoreSpaces| default value to 1.
1385
+ - change |g:CommandTMatchWindowReverse| default value to 1.
1386
+ - change |g:CommandTMaxHeight| default value to 15.
1387
+ - try harder to avoid scrolling other buffer when showing or hiding the match
1388
+ listing
1389
+
1384
1390
  2.0 (28 December 2015)
1385
1391
 
1386
1392
  - add |:CommandTIgnoreSpaces| option (patch from KJ Tsanaktsidis)
@@ -11,12 +11,12 @@ ECHO = $(ECHO1:0=@echo)
11
11
  #### Start of system configuration section. ####
12
12
 
13
13
  srcdir = .
14
- topdir = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0
14
+ topdir = /Users/glh/.rubies/ruby-2.0.0-p645/include/ruby-2.0.0
15
15
  hdrdir = $(topdir)
16
- arch_hdrdir = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/universal-darwin15
16
+ arch_hdrdir = /Users/glh/.rubies/ruby-2.0.0-p645/include/ruby-2.0.0/x86_64-darwin15.2.0
17
17
  PATH_SEPARATOR = :
18
18
  VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
19
- prefix = $(DESTDIR)/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr
19
+ prefix = $(DESTDIR)/Users/glh/.rubies/ruby-2.0.0-p645
20
20
  rubysitearchprefix = $(rubylibprefix)/$(sitearch)
21
21
  rubyarchprefix = $(rubylibprefix)/$(arch)
22
22
  rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
@@ -32,7 +32,7 @@ vendorlibdir = $(vendordir)/$(ruby_version)
32
32
  vendordir = $(rubylibprefix)/vendor_ruby
33
33
  sitearchdir = $(sitelibdir)/$(sitearch)
34
34
  sitelibdir = $(sitedir)/$(ruby_version)
35
- sitedir = $(DESTDIR)/Library/Ruby/Site
35
+ sitedir = $(rubylibprefix)/site_ruby
36
36
  rubyarchdir = $(rubylibdir)/$(arch)
37
37
  rubylibdir = $(rubylibprefix)/$(ruby_version)
38
38
  sitearchincludedir = $(includedir)/$(sitearch)
@@ -40,20 +40,20 @@ archincludedir = $(includedir)/$(arch)
40
40
  sitearchlibdir = $(libdir)/$(sitearch)
41
41
  archlibdir = $(libdir)/$(arch)
42
42
  ridir = $(datarootdir)/$(RI_BASE_NAME)
43
- mandir = $(DESTDIR)/usr/share/man
43
+ mandir = $(datarootdir)/man
44
44
  localedir = $(datarootdir)/locale
45
45
  libdir = $(exec_prefix)/lib
46
46
  psdir = $(docdir)
47
47
  pdfdir = $(docdir)
48
48
  dvidir = $(docdir)
49
49
  htmldir = $(docdir)
50
- infodir = $(DESTDIR)/usr/share/info
50
+ infodir = $(datarootdir)/info
51
51
  docdir = $(datarootdir)/doc/$(PACKAGE)
52
52
  oldincludedir = $(DESTDIR)/usr/include
53
- includedir = $(DESTDIR)/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk$(prefix)/include
53
+ includedir = $(prefix)/include
54
54
  localstatedir = $(prefix)/var
55
55
  sharedstatedir = $(prefix)/com
56
- sysconfdir = $(DESTDIR)/Library/Ruby/Site
56
+ sysconfdir = $(prefix)/etc
57
57
  datadir = $(datarootdir)
58
58
  datarootdir = $(prefix)/share
59
59
  libexecdir = $(exec_prefix)/libexec
@@ -62,11 +62,11 @@ bindir = $(exec_prefix)/bin
62
62
  archdir = $(rubyarchdir)
63
63
 
64
64
 
65
- CC = xcrun clang
66
- CXX = xcrun clang++
67
- LIBRUBY = $(LIBRUBY_SO)
65
+ CC = clang
66
+ CXX = g++
67
+ LIBRUBY = $(LIBRUBY_A)
68
68
  LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
69
- LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
69
+ LIBRUBYARG_SHARED =
70
70
  LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
71
71
  empty =
72
72
  OUTFLAG = -o $(empty)
@@ -74,18 +74,18 @@ COUTFLAG = -o $(empty)
74
74
 
75
75
  RUBY_EXTCONF_H =
76
76
  cflags = $(optflags) $(debugflags) $(warnflags)
77
- optflags =
78
- debugflags = -g
79
- warnflags =
80
- CCDLFLAGS =
81
- CFLAGS = $(CCDLFLAGS) -g -Os -pipe -DHAVE_GCC_SYNC_BUILTINS $(ARCH_FLAG)
77
+ optflags = -O3 -fno-fast-math
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
80
+ CCDLFLAGS = -fno-common
81
+ CFLAGS = $(CCDLFLAGS) $(cflags) -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_STDINT_H -DHAVE_SYS_ERRNO_H -DHAVE_SYS_SOCKET_H -DHAVE_RUBY_ST_H -DHAVE_ST_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)
85
- CXXFLAGS = $(CCDLFLAGS) $(ARCH_FLAG) -g -Os -pipe $(ARCH_FLAG)
86
- ldflags = -L. -L/usr/local/lib
87
- dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress
88
- ARCH_FLAG = -arch i386 -arch x86_64
84
+ CPPFLAGS = -DHAVE_FCNTL_H -DHAVE_STDINT_H -DHAVE_SYS_ERRNO_H -DHAVE_SYS_SOCKET_H -DHAVE_RUBY_ST_H -DHAVE_ST_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/opt/openssl/include -I/usr/local/opt/readline/include -I/usr/local/opt/libyaml/include -I/usr/local/opt/gdbm/include $(DEFS) $(cppflags)
85
+ CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG)
86
+ ldflags = -L. -fstack-protector -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/gdbm/lib
87
+ dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/gdbm/lib
88
+ ARCH_FLAG =
89
89
  DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
90
90
  LDSHARED = $(CC) -dynamic -bundle
91
91
  LDSHAREDXX = $(CXX) -dynamic -bundle
@@ -93,13 +93,13 @@ AR = ar
93
93
  EXEEXT =
94
94
 
95
95
  RUBY_INSTALL_NAME = ruby
96
- RUBY_SO_NAME = ruby.2.0.0
96
+ RUBY_SO_NAME = ruby
97
97
  RUBYW_INSTALL_NAME =
98
98
  RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
99
99
  RUBYW_BASE_NAME = rubyw
100
100
  RUBY_BASE_NAME = ruby
101
101
 
102
- arch = universal-darwin15
102
+ arch = x86_64-darwin15.2.0
103
103
  sitearch = $(arch)
104
104
  ruby_version = 2.0.0
105
105
  ruby = $(bindir)/ruby
@@ -109,8 +109,8 @@ ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/con
109
109
  RM = rm -f
110
110
  RM_RF = $(RUBY) -run -e rm -- -rf
111
111
  RMDIRS = rmdir -p
112
- MAKEDIRS = mkdir -p
113
- INSTALL = /usr/bin/install -c
112
+ MAKEDIRS = /usr/local/bin/gmkdir -p
113
+ INSTALL = /usr/local/bin/ginstall -c
114
114
  INSTALL_PROG = $(INSTALL) -m 0755
115
115
  INSTALL_DATA = $(INSTALL) -m 644
116
116
  COPY = cp
@@ -120,8 +120,8 @@ TOUCH = exit >
120
120
 
121
121
  preload =
122
122
 
123
- libpath = . $(libdir)
124
- LIBPATH = -L. -L$(libdir)
123
+ libpath = . $(libdir) /usr/local/opt/openssl/lib /usr/local/opt/readline/lib /usr/local/opt/libyaml/lib /usr/local/opt/gdbm/lib
124
+ LIBPATH = -L. -L$(libdir) -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/gdbm/lib
125
125
  DEFFILE =
126
126
 
127
127
  CLEANFILES = mkmf.log
@@ -132,7 +132,7 @@ extout =
132
132
  extout_prefix =
133
133
  target_prefix =
134
134
  LOCAL_LIBS =
135
- LIBS = $(LIBRUBYARG_SHARED) -lpthread -lpthread -ldl -lobjc
135
+ LIBS = -lpthread -lpthread -ldl -lobjc
136
136
  ORIG_SRCS = ext.c match.c matcher.c watchman.c
137
137
  SRCS = $(ORIG_SRCS)
138
138
  OBJS = ext.o match.o matcher.o watchman.o
@@ -261,7 +261,7 @@ module CommandT
261
261
  :case_sensitive => case_sensitive?,
262
262
  :limit => match_limit,
263
263
  :threads => CommandT::Util.processor_count,
264
- :ignore_spaces => VIM::get_bool('g:CommandTIgnoreSpaces'),
264
+ :ignore_spaces => VIM::get_bool('g:CommandTIgnoreSpaces', true),
265
265
  :recurse => VIM::get_bool('g:CommandTRecursiveMatch', true),
266
266
  )
267
267
  @match_window.matches = @matches
@@ -307,7 +307,7 @@ module CommandT
307
307
  @match_window = MatchWindow.new \
308
308
  :highlight_color => VIM::get_string('g:CommandTHighlightColor'),
309
309
  :match_window_at_top => VIM::get_bool('g:CommandTMatchWindowAtTop'),
310
- :match_window_reverse => VIM::get_bool('g:CommandTMatchWindowReverse'),
310
+ :match_window_reverse => VIM::get_bool('g:CommandTMatchWindowReverse', true),
311
311
  :min_height => min_height,
312
312
  :debounce_interval => VIM::get_number('g:CommandTInputDebounce') || 50,
313
313
  :prompt => prompt,
@@ -320,7 +320,7 @@ module CommandT
320
320
  end
321
321
 
322
322
  def max_height
323
- @max_height ||= VIM::get_number('g:CommandTMaxHeight') || 0
323
+ @max_height ||= VIM::get_number('g:CommandTMaxHeight') || 15
324
324
  end
325
325
 
326
326
  def min_height
Binary file
@@ -139,7 +139,7 @@ void calculate_match(VALUE str,
139
139
  m.max_score_per_char = (1.0 / m.haystack_len + 1.0 / m.needle_len) / 2;
140
140
  m.always_show_dot_files = always_show_dot_files == Qtrue;
141
141
  m.never_show_dot_files = never_show_dot_files == Qtrue;
142
- m.case_sensitive = case_sensitive;
142
+ m.case_sensitive = (int)case_sensitive;
143
143
  m.recurse = recurse == Qtrue;
144
144
 
145
145
  // calculate score
@@ -23,15 +23,6 @@ module CommandT
23
23
  quoted_name = VIM::escape_for_single_quotes(options[:name])
24
24
  escaped_name = ::VIM::evaluate("fnameescape('#{quoted_name}')")
25
25
 
26
- # save existing window dimensions so we can restore them later
27
- @windows = (0..(::VIM::Window.count - 1)).map do |i|
28
- OpenStruct.new(
29
- :index => i,
30
- :height => ::VIM::Window[i].height,
31
- :width => ::VIM::Window[i].width
32
- )
33
- end
34
-
35
26
  set 'timeout', true # ensure mappings timeout
36
27
  set 'hlsearch', false # don't highlight search strings
37
28
  set 'insertmode', false # don't make Insert mode the default
@@ -44,6 +35,36 @@ module CommandT
44
35
  set 'sidescrolloff', 0 # don't sidescroll automatically
45
36
  set 'updatetime', options[:debounce_interval]
46
37
 
38
+ # Save existing window views so we can restore them later.
39
+ current_window = ::VIM::evaluate('winnr()')
40
+ @windows = (0..(::VIM::Window.count - 1)).map do |i|
41
+ focus_window(i + 1)
42
+ view = ::VIM::evaluate('winsaveview()')
43
+ window = OpenStruct.new(
44
+ :index => i,
45
+ :height => ::VIM::Window[i].height,
46
+ :width => ::VIM::Window[i].width,
47
+ :lnum => view['lnum'],
48
+ :col => view['col'],
49
+ :coladd => view['coladd'],
50
+ :curswant => view['curswant'],
51
+ :topline => view['topline'],
52
+ :topfill => view['topfill'],
53
+ :leftcol => view['leftcol'],
54
+ :skipcol => view['skipcol'],
55
+ )
56
+
57
+ # When creating a split for the match window, move the cursor to the
58
+ # opposite side of the window's viewport to prevent unwanted scrolling.
59
+ boundary_line = options[:match_window_at_top] ?
60
+ ::VIM::evaluate("line('w$')") :
61
+ view['topline']
62
+ ::VIM::evaluate("winrestview({'lnum': #{boundary_line}})")
63
+
64
+ window
65
+ end
66
+ focus_window(current_window)
67
+
47
68
  # show match window
48
69
  split_location = options[:match_window_at_top] ? 'topleft' : 'botright'
49
70
  if ((number = buffer_number)) # still have buffer from last time
@@ -168,7 +189,7 @@ module CommandT
168
189
  end
169
190
 
170
191
  def unload
171
- restore_window_dimensions
192
+ restore_window_views
172
193
  @settings.restore
173
194
  @prompt.dispose
174
195
  show_cursor
@@ -251,6 +272,10 @@ module CommandT
251
272
 
252
273
  private
253
274
 
275
+ def focus_window(number)
276
+ ::VIM::command("noautocmd #{number}wincmd w")
277
+ end
278
+
254
279
  def _next
255
280
  if @selection < [@window.height, @matches.length].min - 1
256
281
  @selection += 1
@@ -296,7 +321,7 @@ module CommandT
296
321
  lock
297
322
  end
298
323
 
299
- def restore_window_dimensions
324
+ def restore_window_views
300
325
  # sort from tallest to shortest, tie-breaking on window width
301
326
  @windows.sort! do |a, b|
302
327
  order = b.height <=> a.height
@@ -310,13 +335,26 @@ module CommandT
310
335
  # starting with the tallest ensures that there are no constraints
311
336
  # preventing windows on the side of vertical splits from regaining
312
337
  # their original full size
338
+ current_window = ::VIM::evaluate('winnr()')
313
339
  @windows.each do |w|
314
340
  # beware: window may be nil
315
341
  if window = ::VIM::Window[w.index]
316
342
  window.height = w.height
317
343
  window.width = w.width
344
+ focus_window(w.index + 1)
345
+ ::VIM::evaluate("winrestview({" +
346
+ "'lnum': #{w.lnum}," +
347
+ "'col': #{w.col}, " +
348
+ "'coladd': #{w.coladd}, " +
349
+ "'curswant': #{w.curswant}, " +
350
+ "'topline': #{w.topline}, " +
351
+ "'topfill': #{w.topfill}, " +
352
+ "'leftcol': #{w.leftcol}, " +
353
+ "'skipcol': #{w.skipcol}" +
354
+ "})")
318
355
  end
319
356
  end
357
+ focus_window(current_window)
320
358
  end
321
359
 
322
360
  def match_text_for_idx(idx)
@@ -81,9 +81,9 @@ VALUE CommandTMatcher_initialize(int argc, VALUE *argv, VALUE self)
81
81
  }
82
82
 
83
83
  typedef struct {
84
- int thread_count;
85
- int thread_index;
86
- int case_sensitive;
84
+ long thread_count;
85
+ long thread_index;
86
+ long case_sensitive;
87
87
  match_t *matches;
88
88
  long path_count;
89
89
  VALUE paths;
@@ -0,0 +1,8 @@
1
+ # This file was generated by extconf.rb
2
+ module CommandT
3
+ module Metadata
4
+ EXPECTED_RUBY_VERSION = "2.0.0"
5
+ EXPECTED_RUBY_PATCHLEVEL = 645
6
+ UNKNOWN = false
7
+ end # module Metadata
8
+ end # module CommandT
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: command-t
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.0'
4
+ version: '3.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Hurrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-28 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Command-T provides a fast, intuitive mechanism for opening files with a
@@ -44,6 +44,7 @@ files:
44
44
  - ruby/command-t/matcher.c
45
45
  - ruby/command-t/matcher.h
46
46
  - ruby/command-t/metadata/fallback.rb
47
+ - ruby/command-t/metadata.rb
47
48
  - ruby/command-t/mru.rb
48
49
  - ruby/command-t/path_utilities.rb
49
50
  - ruby/command-t/prompt.rb
@@ -71,7 +72,7 @@ files:
71
72
  - doc/command-t.txt
72
73
  - doc/tags
73
74
  - plugin/command-t.vim
74
- homepage: https://wincent.com/products/command-t
75
+ homepage: https://github.com/wincent/command-t
75
76
  licenses:
76
77
  - BSD
77
78
  metadata: {}