m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-20 09:33:42 -05:00

Fix FZFTag

Junegunn Choi
2015-03-29 04:02:04 +09:00
parent 4bb1bc6e16
commit b499dae418

@@ -66,18 +66,13 @@ command! FZFMru call fzf#run({
\})
```
### Jump to tags (@atn34)
### Jump to tags
```vimL
function! TagCommand()
return substitute('awk _!/^!/ { print \$1 }_ ', '_', "'", 'g')
\ . join(tagfiles(), ' ')
endfunction
command! FZFTag call fzf#run({
\ 'source' : TagCommand(),
```vim
command! FZFTag if !empty(tagfiles()) | call fzf#run({
\ 'source': "sed '/^\\!/d;s/\t.*//' " . join(tagfiles()) . ' | uniq',
\ 'sink': 'tag',
\ })
\ }) | else | echo 'No tags' | endif
```
### Search lines in all open vim buffers