Permalink
Browse files

Let either semi-colon or comma delimit the ignore list

Thanks to bretthoerner for the suggestion!
  • Loading branch information...
1 parent 8d7e5af commit 3abf829a65c4ccbb0dc779ca3472087398107fa3 @jamis committed Nov 7, 2008
Showing with 4 additions and 3 deletions.
  1. +1 −1 README
  2. +3 −2 fuzzyfinder_textmate.vim
View
2 README
@@ -17,7 +17,7 @@ There are several different variables that you may set in your .vimrc file that
* g:fuzzy_roots - this defaults to the current directory, but may be set to an array of paths that you want the finder to search.
* g:fuzzy_ceiling - this defaults to 10,000, and is the maximum number of files that the finder will scan before it raises an error. To use the finder on larger trees, set this variable to a value larger than the number of files you expect to scan.
-* g:fuzzy_ignore - this is a semi-colon delimited list of file glob patterns to ignore.
+* g:fuzzy_ignore - this is a delimited list of file glob patterns to ignore. Entries may be delimited using either semi-colons or commas.
* g:fuzzy_matching_limit - this is the maximum number of items that will be matched, and defaults to 200. If the finder feels sluggish to you, you can reduce this to something smaller (100, or 50).
Installation
View
@@ -55,7 +55,8 @@ RUBY
endif
" Configuration option: g:fuzzy_ignore
- " A semi-colon delimited list of file glob patterns to ignore
+ " A delimited list of file glob patterns to ignore. Entries may be delimited
+ " with either commas or semi-colons.
if !exists('g:fuzzy_ignore')
let g:fuzzy_ignore = ""
endif
@@ -70,7 +71,7 @@ ruby << RUBY
@finder ||= begin
roots = VIM.evaluate("g:fuzzy_roots").split("\n")
ceiling = VIM.evaluate("g:fuzzy_ceiling").to_i
- ignore = VIM.evaluate("g:fuzzy_ignore").split(/;/)
+ ignore = VIM.evaluate("g:fuzzy_ignore").split(/[;,]/)
FuzzyFileFinder.new(roots, ceiling, ignore)
end
end

0 comments on commit 3abf829

Please sign in to comment.