Skip to content

Commit

Permalink
Don't ask if there's only one result in cross-tab-completetion
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed May 11, 2012
1 parent 1e8ab42 commit 3395a2a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Commands/Complete across current open files.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ end
@loader.join
TextMate::UI.complete(choices.uniq, :initial_filter => current_word)
choices.uniq!
if choices.size == 1
print choices.first[current_word.size..-1]
else
TextMate::UI.complete(choices, :initial_filter => current_word)
end
</string>
<key>input</key>
<string>word</string>
Expand All @@ -45,7 +50,7 @@ TextMate::UI.complete(choices.uniq, :initial_filter =&gt; current_word)
<key>outputFormat</key>
<string>text</string>
<key>outputLocation</key>
<string>discard</string>
<string>afterInput</string>
<key>uuid</key>
<string>A9BE20F2-425D-4734-82EB-A5A67FF4F607</string>
<key>version</key>
Expand Down

0 comments on commit 3395a2a

Please sign in to comment.