Skip to content

Commit 3abf829

Browse files
committed
Let either semi-colon or comma delimit the ignore list
Thanks to bretthoerner for the suggestion!
1 parent 8d7e5af commit 3abf829

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ There are several different variables that you may set in your .vimrc file that
1717

1818
* 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.
1919
* 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.
20-
* g:fuzzy_ignore - this is a semi-colon delimited list of file glob patterns to ignore.
20+
* g:fuzzy_ignore - this is a delimited list of file glob patterns to ignore. Entries may be delimited using either semi-colons or commas.
2121
* 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).
2222

2323
Installation

fuzzyfinder_textmate.vim

+3-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ RUBY
5555
endif
5656

5757
" Configuration option: g:fuzzy_ignore
58-
" A semi-colon delimited list of file glob patterns to ignore
58+
" A delimited list of file glob patterns to ignore. Entries may be delimited
59+
" with either commas or semi-colons.
5960
if !exists('g:fuzzy_ignore')
6061
let g:fuzzy_ignore = ""
6162
endif
@@ -70,7 +71,7 @@ ruby << RUBY
7071
@finder ||= begin
7172
roots = VIM.evaluate("g:fuzzy_roots").split("\n")
7273
ceiling = VIM.evaluate("g:fuzzy_ceiling").to_i
73-
ignore = VIM.evaluate("g:fuzzy_ignore").split(/;/)
74+
ignore = VIM.evaluate("g:fuzzy_ignore").split(/[;,]/)
7475
FuzzyFileFinder.new(roots, ceiling, ignore)
7576
end
7677
end

0 commit comments

Comments
 (0)