Permalink
Browse files

Pass multiple roots to FuzzyFileFinder constructor via the g:fuzzy_ro…

…ots variable.
  • Loading branch information...
1 parent 48fbba9 commit e2e1d44dd8bed45881d9ecfa36ece81e727f3b28 Kevin committed Oct 11, 2008
Showing with 7 additions and 1 deletion.
  1. +7 −1 fuzzyfinder_textmate.vim
View
@@ -36,7 +36,13 @@ ruby << RUBY
require 'fuzzy_file_finder'
RUBY
- ruby def finder; @finder ||= FuzzyFileFinder.new; end
+ " Configuration option: g:fuzzy_roots
+ " Specifies roots in which the FuzzyFinder will search.
+ if !exists('g:fuzzy_roots')
+ :let g:fuzzy_roots = ['.']
+ endif
+
+ ruby def finder; @finder ||= FuzzyFileFinder.new(VIM.evaluate("g:fuzzy_roots").split("\n")); end
let g:FuzzyFinderMode.TextMate = copy(g:FuzzyFinderMode.Base)

0 comments on commit e2e1d44

Please sign in to comment.