command-t 1.11.3 → 1.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.txt +12 -0
- data/doc/command-t.txt +12 -0
- data/ruby/command-t/controller.rb +10 -1
- data/ruby/command-t/extconf.rb +10 -1
- data/ruby/command-t/vim/path_utilities.rb +3 -2
- 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: 15b705a2624dd62c0c65aeb2b4cf83d6a65ff912
|
4
|
+
data.tar.gz: 634e56a4920160bc57030edf343e5dfe3006c7d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc4e56903ae78486158c715970317bc2789ca3be23b7115cdf86e56c5116f004baa4bd054c410d1bd05f09f14f066845e4b78afe2164658a57c0d369703aa965
|
7
|
+
data.tar.gz: a7a848d60520dfa88ae35d03f3950f0119c32a5e2ba0ce55dca55b41be9f93ac825e19090322af697b32644b862c9c084753cbf0245ebd562772ce5e9516e268
|
data/README.txt
CHANGED
@@ -112,6 +112,11 @@ Or, for very old versions of Ruby which don't define `RUBY_PATCHLEVEL`:
|
|
112
112
|
|
113
113
|
:ruby puts RUBY_VERSION
|
114
114
|
|
115
|
+
Some Linux distributions package Ruby development tools separately from Ruby
|
116
|
+
itself; if you're using such a system you may need to install the "ruby-dev",
|
117
|
+
"ruby-devel" or similar package using your system's package manager in order
|
118
|
+
to build Command-T.
|
119
|
+
|
115
120
|
A suitable Ruby environment for Windows can be installed using the Ruby
|
116
121
|
1.8.7-p299 RubyInstaller available at:
|
117
122
|
|
@@ -1216,6 +1221,13 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
1216
1221
|
|
1217
1222
|
HISTORY *command-t-history*
|
1218
1223
|
|
1224
|
+
1.11.4 (4 November 2014)
|
1225
|
+
|
1226
|
+
- fix infinite loop on Windows when |g:CommandTTraverseSCM| is set to a value
|
1227
|
+
other than "pwd" (bug present since 1.11)
|
1228
|
+
- handle unwanted split edgecase when |'hidden'| is set, the current buffer is
|
1229
|
+
modified, and it is visible in more than one window
|
1230
|
+
|
1219
1231
|
1.11.3 (10 October 2014)
|
1220
1232
|
|
1221
1233
|
- ignore impromperly encoded filenames (patch from Sherzod Gapirov)
|
data/doc/command-t.txt
CHANGED
@@ -112,6 +112,11 @@ Or, for very old versions of Ruby which don't define `RUBY_PATCHLEVEL`:
|
|
112
112
|
|
113
113
|
:ruby puts RUBY_VERSION
|
114
114
|
|
115
|
+
Some Linux distributions package Ruby development tools separately from Ruby
|
116
|
+
itself; if you're using such a system you may need to install the "ruby-dev",
|
117
|
+
"ruby-devel" or similar package using your system's package manager in order
|
118
|
+
to build Command-T.
|
119
|
+
|
115
120
|
A suitable Ruby environment for Windows can be installed using the Ruby
|
116
121
|
1.8.7-p299 RubyInstaller available at:
|
117
122
|
|
@@ -1216,6 +1221,13 @@ POSSIBILITY OF SUCH DAMAGE.
|
|
1216
1221
|
|
1217
1222
|
HISTORY *command-t-history*
|
1218
1223
|
|
1224
|
+
1.11.4 (4 November 2014)
|
1225
|
+
|
1226
|
+
- fix infinite loop on Windows when |g:CommandTTraverseSCM| is set to a value
|
1227
|
+
other than "pwd" (bug present since 1.11)
|
1228
|
+
- handle unwanted split edgecase when |'hidden'| is set, the current buffer is
|
1229
|
+
modified, and it is visible in more than one window
|
1230
|
+
|
1219
1231
|
1.11.3 (10 October 2014)
|
1220
1232
|
|
1221
1233
|
- ignore impromperly encoded filenames (patch from Sherzod Gapirov)
|
@@ -284,10 +284,19 @@ module CommandT
|
|
284
284
|
str.gsub(/[ \\|%#"]/, '\\\\\0')
|
285
285
|
end
|
286
286
|
|
287
|
+
def current_buffer_visible_in_other_window
|
288
|
+
count = (0...::VIM::Window.count).to_a.inject(0) do |acc, i|
|
289
|
+
acc += 1 if ::VIM::Window[i].buffer.number == $curbuf.number
|
290
|
+
acc
|
291
|
+
end
|
292
|
+
count > 1
|
293
|
+
end
|
294
|
+
|
287
295
|
def default_open_command
|
288
296
|
if !VIM::get_bool('&modified') ||
|
289
297
|
VIM::get_bool('&hidden') ||
|
290
|
-
VIM::get_bool('&autowriteall') && !VIM::get_bool('&readonly')
|
298
|
+
VIM::get_bool('&autowriteall') && !VIM::get_bool('&readonly') ||
|
299
|
+
current_buffer_visible_in_other_window
|
291
300
|
VIM::get_string('g:CommandTAcceptSelectionCommand') || 'e'
|
292
301
|
else
|
293
302
|
'sp'
|
data/ruby/command-t/extconf.rb
CHANGED
@@ -1,7 +1,16 @@
|
|
1
1
|
# Copyright 2010-2014 Greg Hurrell. All rights reserved.
|
2
2
|
# Licensed under the terms of the BSD 2-clause license.
|
3
3
|
|
4
|
-
|
4
|
+
begin
|
5
|
+
require 'mkmf'
|
6
|
+
rescue LoadError
|
7
|
+
puts <<-DOC.gsub(/^\s+/, '')
|
8
|
+
Unable to require "mkmf"; you may need to install Ruby development tools
|
9
|
+
(depending on your system, a "ruby-dev"/"ruby-devel" package or similar).
|
10
|
+
[exiting]
|
11
|
+
DOC
|
12
|
+
exit 1
|
13
|
+
end
|
5
14
|
|
6
15
|
def header(item)
|
7
16
|
unless find_header(item)
|
@@ -22,8 +22,9 @@ module CommandT
|
|
22
22
|
map { |dir| File.join(path, dir) }.
|
23
23
|
map { |dir| File.exist?(dir) }.
|
24
24
|
any?
|
25
|
-
|
26
|
-
|
25
|
+
next_path = File.expand_path(File.join(path, '..'))
|
26
|
+
return nil if next_path == path
|
27
|
+
path = next_path
|
27
28
|
end
|
28
29
|
path
|
29
30
|
end
|
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: 1.11.
|
4
|
+
version: 1.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Greg Hurrell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-04 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
|