Skip to content

Commit

Permalink
Simplify finder_textmate plugin.
Browse files Browse the repository at this point in the history
Attempt to lessen the noise.  No longer showing the index of the file or
the score.
  • Loading branch information
duff committed Mar 22, 2010
1 parent ace4be3 commit 707b301
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugin/fuzzyfinder_textmate.vim
Expand Up @@ -138,9 +138,7 @@ RUBY
matches = finder.find(text, limit)
matches.sort_by { |a| [-a[:score], a[:path]] }.each_with_index do |match, index|
word = match[:path]
abbr = "%2d: %s" % [index+1, match[:abbr]]
menu = "[%5d]" % [match[:score] * 10000]
VIM.evaluate("add(result, { 'word' : #{word.inspect}, 'abbr' : #{abbr.inspect}, 'menu' : #{menu.inspect} })")
VIM.evaluate("add(result, { 'word' : #{word.inspect}, 'abbr' : #{match[:abbr].inspect} })")
end
RUBY

Expand Down

0 comments on commit 707b301

Please sign in to comment.