mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-09 22:14:45 +08:00
[Tags] Add a tag preview with a custom tagpreview.sh script (#1223)
* Add a tag preview with a custom `tagpreview.sh` script * [Tags] Respect g:fzf_preview_window Co-authored-by: Ingo Meyer <IJ_M@gmx.de> Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
This commit is contained in:
@@ -941,7 +941,7 @@ function! fzf#vim#tags(query, ...)
|
||||
return s:fzf('tags', {
|
||||
\ 'source': 'perl '.fzf#shellescape(s:bin.tags).' '.join(map(tagfiles, 'fzf#shellescape(fnamemodify(v:val, ":p"))')),
|
||||
\ 'sink*': s:function('s:tags_sink'),
|
||||
\ 'options': extend(opts, ['--nth', '1..2', '-m', '--tiebreak=begin', '--prompt', 'Tags> ', '--query', a:query])}, a:000)
|
||||
\ 'options': extend(opts, ['--nth', '1..2', '-m', '-d', '\t', '--tiebreak=begin', '--prompt', 'Tags> ', '--query', a:query])}, a:000)
|
||||
endfunction
|
||||
|
||||
" ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user