Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#59 Sort tag file on multiple matches for the same identifier

open
nobody
None
5
2011-04-26
2011-04-26
mMontu
No

First of all, I'd like to thank you for providing this great tool.

If it is possible, it would be nice to have an option to sort multiple
matches for the same tag, i.e., if for a given language Exuberant
Ctags finds two different lines on two different files for the same
tag, then provide a mechanism to sort which line should appear first
for that identifier on the output tag file.

This kind of feature would allow to avoid jumping to a function
declaration and instead always jump first to a function definition on
C++ code, which seems to be helpful for a number of people:

http://stackoverflow.com/questions/1054701/get-ctags-in-vim-to-go-to-definition-not-declaration

http://stackoverflow.com/questions/5536753/vim-goto-function-declaration

If it would be possible to sort multiple matching lines for the same
identifier, then one could sort lines on .h files by last, or sort
lines containing an ending ';' by last.

Discussion