buffer_tags: sort tags
This is nice for (ab)using :BTags to "browse" functions in a source file.
This commit is contained in:
parent
dcf49751e9
commit
bbda33b402
1 changed files with 2 additions and 2 deletions
|
@ -745,8 +745,8 @@ function! fzf#vim#buffer_tags(query, ...)
|
|||
let escaped = fzf#shellescape(expand('%'))
|
||||
let null = s:is_win ? 'nul' : '/dev/null'
|
||||
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=no --excmd=number %s 2> %s', escaped, null)]
|
||||
\ printf('ctags -f - --sort=yes --excmd=number --language-force=%s %s 2> %s', &filetype, escaped, null),
|
||||
\ printf('ctags -f - --sort=yes --excmd=number %s 2> %s', escaped, null)]
|
||||
if type(tag_cmds) != type([])
|
||||
let tag_cmds = [tag_cmds]
|
||||
endif
|
||||
|
|
Loading…
Add table
Reference in a new issue