mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-16 01:07:08 +08:00
Fix #3 - Use colors instead of --with-nth for readability
This commit is contained in:
@@ -379,9 +379,9 @@ function! s:tags(bang)
|
||||
let tagfile = tagfiles()[0]
|
||||
call s:fzf({
|
||||
\ 'source': 'cat '.shellescape(tagfile).
|
||||
\ '| grep -v "^!"',
|
||||
\ '| grep -v "^!" | perl -pe "s/^(.*?)\t(.*?)\t/\x1b[33m\1\x1b[m\t\x1b[34m\2\x1b[m\t/"',
|
||||
\ 'dir': fnamemodify(tagfile, ':h'),
|
||||
\ 'options': '+m -d "\t" --with-nth 1,4.. -n 1 --prompt "Tags> "'.s:expect(),
|
||||
\ 'options': '--ansi +m --tiebreak=begin --prompt "Tags> "'.s:expect(),
|
||||
\ 'sink*': function('s:tags_sink')}, a:bang)
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user