mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-06 20:54:28 +08:00
buffer_tags: sort tags
This is nice for (ab)using :BTags to "browse" functions in a source file.
This commit is contained in:
committed by
Junegunn Choi
parent
dcf49751e9
commit
bbda33b402
@@ -745,8 +745,8 @@ function! fzf#vim#buffer_tags(query, ...)
|
|||||||
let escaped = fzf#shellescape(expand('%'))
|
let escaped = fzf#shellescape(expand('%'))
|
||||||
let null = s:is_win ? 'nul' : '/dev/null'
|
let null = s:is_win ? 'nul' : '/dev/null'
|
||||||
let tag_cmds = (len(args) > 1 && type(args[0]) != type({})) ? remove(args, 0) : [
|
let tag_cmds = (len(args) > 1 && type(args[0]) != type({})) ? remove(args, 0) : [
|
||||||
\ printf('ctags -f - --sort=no --excmd=number --language-force=%s %s 2> %s', &filetype, escaped, null),
|
\ printf('ctags -f - --sort=yes --excmd=number --language-force=%s %s 2> %s', &filetype, escaped, null),
|
||||||
\ printf('ctags -f - --sort=no --excmd=number %s 2> %s', escaped, null)]
|
\ printf('ctags -f - --sort=yes --excmd=number %s 2> %s', escaped, null)]
|
||||||
if type(tag_cmds) != type([])
|
if type(tag_cmds) != type([])
|
||||||
let tag_cmds = [tag_cmds]
|
let tag_cmds = [tag_cmds]
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user