ctags sets the tag's "local" flag to true for tags whose visibility is limited to the current file only. These are for instance "static" functions in C.
We can ignore these tags for autocompletion in other files than the tag's file which reduces the number of irrelevant tags in the autocompletion popup. You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3268
-- Commit Summary --
* Ignore local tags for autocompletion in other files
-- File Changes --
M src/tagmanager/tm_workspace.c (7)
-- Patch Links --
https://github.com/geany/geany/pull/3268.patch https://github.com/geany/geany/pull/3268.diff
Just to explain, this is something different than the local variable tags for which we added support in #3185. This is an extra flag ctags adds to every tag indicating whether it's valid only within the given file. I don't know how many parsers support this flag but it's at least emitted for C/C++ and it's non-support just means the flag is false so it's considered as non-local and everything works as before.
LGBI. Not testet but patch is simple and your explanation makes totally sense.
LGBI
I guess this one isn't too controversial so unless anyone objects, I'll merge this PR in about a week.
Merged #3268 into master.
github-comments@lists.geany.org