On Thu, Aug 06, 2020 at 02:04:38PM +0200, peterz@xxxxxxxxxxxxx wrote: > > One long standing annoyance I have with using vim-tags is that our tags > file is not properly sorted. That is, the sorting exhuberant Ctags does > is only on the tag itself. > > The problem with that is that, for example, the tag 'mutex' appears a > mere 505 times, 492 of those are structure members. However it is _far_ > more likely that someone wants the struct definition when looking for > the mutex tag than any of those members. However, due to the nature of > the sorting, the struct definition will not be first. > > So add a script that does a custom sort of the tags file, taking the tag > kind into account. > > The kind ordering is roughly: 'type', 'function', 'macro', 'enum', rest. > > Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx> > --- ping?