m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 09:03:43 -05:00

Add -a to grep command so it doesn't stop on "Binary file matches," losing most of my tags >:(

Greg Kettler
2016-10-10 15:48:20 -05:00
parent 4ad69d663d
commit f1cc260865

@@ -232,7 +232,7 @@ function! s:tags()
call fzf#run({ call fzf#run({
\ 'source': 'cat '.join(map(tagfiles(), 'fnamemodify(v:val, ":S")')). \ 'source': 'cat '.join(map(tagfiles(), 'fnamemodify(v:val, ":S")')).
\ '| grep -v ^!', \ '| grep -v -a ^!',
\ 'options': '+m -d "\t" --with-nth 1,4.. -n 1 --tiebreak=index', \ 'options': '+m -d "\t" --with-nth 1,4.. -n 1 --tiebreak=index',
\ 'down': '40%', \ 'down': '40%',
\ 'sink': function('s:tags_sink')}) \ 'sink': function('s:tags_sink')})