diff options
author | James McCoy <jamessan@jamessan.com> | 2017-04-07 16:08:58 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2017-04-07 16:18:04 -0400 |
commit | 20dc04470e00a369d2ba917a22b06ef2d173953f (patch) | |
tree | bbafc8b525f5c2d88fe0c30053c8a14178cbaab4 /runtime | |
parent | 13352c00f1909d9296c5f276a3735f5e6f231b39 (diff) | |
download | rneovim-20dc04470e00a369d2ba917a22b06ef2d173953f.tar.gz rneovim-20dc04470e00a369d2ba917a22b06ef2d173953f.tar.bz2 rneovim-20dc04470e00a369d2ba917a22b06ef2d173953f.zip |
vim-patch:8.0.0499
Problem: taglist() does not prioritize tags for a buffer.
Solution: Add an optional buffer argument. (Duncan McDougall, closes vim/vim#1194)
https://github.com/vim/vim/commit/c6aafbaf3ea755e3ab4ee2e3045911126a08b038
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 7060cc4186..e21f5357a2 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2291,7 +2291,7 @@ tabpagebuflist([{arg}]) List list of buffer numbers in tab page tabpagenr([{arg}]) Number number of current or last tab page tabpagewinnr({tabarg}[, {arg}]) Number number of current window in tab page -taglist({expr}) List list of tags matching {expr} +taglist({expr}[, {filename}]) List list of tags matching {expr} tagfiles() List tags files used tan({expr}) Float tangent of {expr} tanh({expr}) Float hyperbolic tangent of {expr} @@ -7427,8 +7427,13 @@ tagfiles() Returns a |List| with the file names used to search for tags for the current buffer. This is the 'tags' option expanded. -taglist({expr}) *taglist()* +taglist({expr}[, {filename}]) *taglist()* Returns a list of tags matching the regular expression {expr}. + + If {filename} is passed it is used to prioritize the results + in the same way that |:tselect| does. See |tag-priority|. + {filename} should be the full path of the file. + Each list item is a dictionary with at least the following entries: name Name of the tag. |