command-t 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/command-t.txt +70 -29
- data/ruby/command-t/match_window.rb +16 -1
- data/ruby/command-t/watchman.c +1 -1
- data/ruby/command-t/watchman.h +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5145bcaab263f39de8e128821e41a0faaac76e8
|
4
|
+
data.tar.gz: 543a970eb799dbd8264ff9c7973f0d9c24719667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47ce4b41ed86d3e009a5277b68dcc6d1fd412e3cc3bfd15913c93ab7be754f1415223c1b730958adc767cbcc8a69309c04ee4475d389cc9ace5fd9689ffb3788
|
7
|
+
data.tar.gz: 9c72f3aac50547abe3f1139d988ca0bcd3e2be2832686a9cceb77b06934c217618013293099a202993343137188da5d267284cfa264f998b58c13ad8c514c091
|
data/doc/command-t.txt
CHANGED
@@ -236,7 +236,18 @@ Command-T:
|
|
236
236
|
call neobundle#end()
|
237
237
|
|
238
238
|
To actually install the plug-in run `:NeoBundleInstall` from inside Vim. After
|
239
|
-
this, you can proceed to compile Command-T (see |command-t-compile|)
|
239
|
+
this, you can proceed to compile Command-T (see |command-t-compile|) manually,
|
240
|
+
or if you wish to have NeoBundle attempt to do so automatically, you can use a
|
241
|
+
configuration like this:
|
242
|
+
|
243
|
+
call neobundle#begin(expand('~/.vim/bundle/'))
|
244
|
+
NeoBundle 'wincent/command-t', {
|
245
|
+
\ 'build_commands': ['make', 'ruby'],
|
246
|
+
\ 'build': {
|
247
|
+
\ 'unix': 'cd ruby/command-t && { make clean; ruby extconf.rb && make }'
|
248
|
+
\ }
|
249
|
+
\ }
|
250
|
+
call neobundle#end()
|
240
251
|
|
241
252
|
For more information about NeoBundle, see:
|
242
253
|
|
@@ -1067,6 +1078,26 @@ context-sensitive 'statusline'.
|
|
1067
1078
|
- `commandt#CheckBuffer()`: Takes a buffer number and returns true if
|
1068
1079
|
it is the Command-T match listing buffer.
|
1069
1080
|
|
1081
|
+
*command-t-custom-autocommands*
|
1082
|
+
Custom autocommands ~
|
1083
|
+
|
1084
|
+
*CommandTWillShowMatchListing*
|
1085
|
+
*CommandTDidHideMatchListing*
|
1086
|
+
|
1087
|
+
Command-T runs the following "User" autocommands just prior to showing the
|
1088
|
+
match listing window and just after hiding it:
|
1089
|
+
|
1090
|
+
- CommandTWillShowMatchListing
|
1091
|
+
- CommandTDidHideMatchListing
|
1092
|
+
|
1093
|
+
For example, to call a pair of custom functions in response to these events,
|
1094
|
+
you might do: >
|
1095
|
+
|
1096
|
+
autocmd! User CommandTWillShowMatchListing
|
1097
|
+
autocmd User CommandTWillShowMatchListing call CustomWillShow()
|
1098
|
+
autocmd! User CommandTDidHideMatchListing
|
1099
|
+
autocmd User CommandTDidHideMatchListing call CustomDidHide()
|
1100
|
+
|
1070
1101
|
|
1071
1102
|
FAQ *command-t-faq*
|
1072
1103
|
|
@@ -1257,34 +1288,38 @@ AUTHORS *command-t-authors*
|
|
1257
1288
|
|
1258
1289
|
Command-T is written and maintained by Greg Hurrell <greg@hurrell.net>.
|
1259
1290
|
Other contributors that have submitted patches include (in alphabetical
|
1260
|
-
order):
|
1261
|
-
|
1262
|
-
Abhinav Gupta
|
1263
|
-
Aleksandrs Ļedovskis
|
1264
|
-
Andy Waite
|
1265
|
-
Anthony Panozzo
|
1266
|
-
Artem Nezvigin
|
1267
|
-
Ben Boeckel
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
Ivan Ukhov
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
KJ Tsanaktsidis
|
1279
|
-
Kevin Webster
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1291
|
+
order, via `git shortlog -s | cut -f 2-3 | column -c 72`):
|
1292
|
+
|
1293
|
+
Abhinav Gupta Nicholas T.
|
1294
|
+
Aleksandrs Ļedovskis Nicolas Alpi
|
1295
|
+
Andy Waite Nikolai Aleksandrovich Pavlov
|
1296
|
+
Anthony Panozzo Noon Silk
|
1297
|
+
Artem Nezvigin Ole Petter Bang
|
1298
|
+
Ben Boeckel Patrick Hayes
|
1299
|
+
Daniel Hahler Paul Jolly
|
1300
|
+
David Szotten Pavel Sergeev
|
1301
|
+
Emily Strickland Rainux Luo
|
1302
|
+
Felix Tjandrawibawa Richard Feldman
|
1303
|
+
Gary Bernhardt Roland Puntaier
|
1304
|
+
Greg Hurrell Ross Lagerwall
|
1305
|
+
Ivan Ukhov Scott Bronson
|
1306
|
+
Jeff Kreeftmeijer Seth Fowler
|
1307
|
+
Jerome Castaneda Sherzod Gapirov
|
1308
|
+
Joe Lencioni Shlomi Fish
|
1309
|
+
KJ Tsanaktsidis Steven Moazami
|
1310
|
+
Kevin Webster Sung Pae
|
1311
|
+
Kien Nguyen Duc Thomas Pelletier
|
1312
|
+
Lucas de Vries Ton van den Heuvel
|
1313
|
+
Marcus Brito Victor Hugo Borja
|
1314
|
+
Marian Schubert Vlad Seghete
|
1315
|
+
Matthew Todd Vít Ondruch
|
1316
|
+
Mike Lundy Woody Peterson
|
1317
|
+
Nadav Samet Yan Pritzker
|
1286
1318
|
Nate Kane Zak Johnson
|
1287
|
-
|
1319
|
+
|
1320
|
+
Additionally, Jacek Wysocki and Yiding Jia wrote patches which were not
|
1321
|
+
directly included but which served as a model for changes that did end up
|
1322
|
+
making it in.
|
1288
1323
|
|
1289
1324
|
As this was the first Vim plug-in I had ever written I was heavily influenced
|
1290
1325
|
by the design of the LustyExplorer plug-in by Stephen Bach, which I understand
|
@@ -1379,9 +1414,15 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
1379
1414
|
|
1380
1415
|
HISTORY *command-t-history*
|
1381
1416
|
|
1417
|
+
3.1 (not yet released)
|
1418
|
+
|
1419
|
+
- Minimize flicker on opening and closing the match listing in MacVim.
|
1420
|
+
- Add |CommandTWillShowMatchListing| and |CommandTDidHideMatchListing| "User"
|
1421
|
+
autocommands.
|
1422
|
+
|
1382
1423
|
3.0.1 (25 January 2016)
|
1383
1424
|
|
1384
|
-
- restore
|
1425
|
+
- restore compatibility with Ruby 1.8.7.
|
1385
1426
|
|
1386
1427
|
3.0 (19 January 2016)
|
1387
1428
|
|
@@ -23,6 +23,8 @@ 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
|
+
run_will_show_autocmd
|
27
|
+
|
26
28
|
set 'timeout', true # ensure mappings timeout
|
27
29
|
set 'hlsearch', false # don't highlight search strings
|
28
30
|
set 'insertmode', false # don't make Insert mode the default
|
@@ -190,9 +192,10 @@ module CommandT
|
|
190
192
|
|
191
193
|
def unload
|
192
194
|
restore_window_views
|
193
|
-
@settings.restore
|
194
195
|
@prompt.dispose
|
196
|
+
@settings.restore
|
195
197
|
show_cursor
|
198
|
+
run_did_hide_autocmd
|
196
199
|
end
|
197
200
|
|
198
201
|
def add!(char)
|
@@ -357,6 +360,18 @@ module CommandT
|
|
357
360
|
focus_window(current_window)
|
358
361
|
end
|
359
362
|
|
363
|
+
def run_will_show_autocmd
|
364
|
+
run_autocmd('CommandTWillShowMatchListing')
|
365
|
+
end
|
366
|
+
|
367
|
+
def run_did_hide_autocmd
|
368
|
+
run_autocmd('CommandTDidHideMatchListing')
|
369
|
+
end
|
370
|
+
|
371
|
+
def run_autocmd(cmd)
|
372
|
+
::VIM::command("call commandt#private#RunAutocmd('#{cmd}')")
|
373
|
+
end
|
374
|
+
|
360
375
|
def match_text_for_idx(idx)
|
361
376
|
match = truncated_match @matches[idx].to_s
|
362
377
|
if idx == @selection
|
data/ruby/command-t/watchman.c
CHANGED
@@ -379,7 +379,7 @@ VALUE watchman_load_hash(char **ptr, char *end) {
|
|
379
379
|
* Templated arrays are arrays of hashes which have repetitive key information
|
380
380
|
* pulled out into a separate "headers" prefix.
|
381
381
|
*
|
382
|
-
* @see https://github.com/facebook/watchman/blob/master/BSER.markdown
|
382
|
+
* @see https://github.com/facebook/watchman/blob/master/website/_docs/BSER.markdown
|
383
383
|
*/
|
384
384
|
VALUE watchman_load_template(char **ptr, char *end) {
|
385
385
|
int64_t header_items_count, i, row_count;
|
data/ruby/command-t/watchman.h
CHANGED
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: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Hurrell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-09 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
|