mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-20 09:33:42 -05:00
Fix FZFTag
@@ -66,18 +66,13 @@ command! FZFMru call fzf#run({
|
|||||||
\})
|
\})
|
||||||
```
|
```
|
||||||
|
|
||||||
### Jump to tags (@atn34)
|
### Jump to tags
|
||||||
|
|
||||||
```vimL
|
```vim
|
||||||
function! TagCommand()
|
command! FZFTag if !empty(tagfiles()) | call fzf#run({
|
||||||
return substitute('awk _!/^!/ { print \$1 }_ ', '_', "'", 'g')
|
\ 'source': "sed '/^\\!/d;s/\t.*//' " . join(tagfiles()) . ' | uniq',
|
||||||
\ . join(tagfiles(), ' ')
|
\ 'sink': 'tag',
|
||||||
endfunction
|
\ }) | else | echo 'No tags' | endif
|
||||||
|
|
||||||
command! FZFTag call fzf#run({
|
|
||||||
\ 'source' : TagCommand(),
|
|
||||||
\ 'sink' : 'tag',
|
|
||||||
\ })
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Search lines in all open vim buffers
|
### Search lines in all open vim buffers
|
||||||
|
|||||||
Reference in New Issue
Block a user