hasktags icon indicating copy to clipboard operation
hasktags copied to clipboard

Allow opt in/out for some definitions

Open dolio opened this issue 10 years ago • 2 comments

I assume it is intentional that hasktags generates tags for all instance declarations under the tag 'instance'. However, I happen to work on a project that implements a compiler for a Haskell-like language, and as such, we have a type named Instance. It would be nice if we could tell hasktags to not generate tags for instances, as they get in the way of jumping to this definition, and the instance tags are not terribly useful for me, at least (we have 50+ instance declarations in our code, so trying to navigate to any one of them via :tj instance doesn't work very well).

dolio avatar Mar 02 '15 04:03 dolio

There are at least 3 solutions: 1) patch hasktags (eg to opt-in-out from some definitions 2) use grep -i to drop definitions by type afterwards 3) use Vim's taglist function to do the filtering - eg see TJump in github.com/MarcWeber/vim-addon-other or vim-addon-manager's sample rc file - both are using taglist. If you come up with a pull request I'll review it. Please be aware that tag lines have a type, eg c for class or i for instance.Let me know what you think might serve you best

MarcWeber avatar Mar 02 '15 07:03 MarcWeber

@dolio Is this still happening (if you're still using Hasktags)? I'd love to at least add some testcases so I can try to resolve it.

jhenahan avatar May 13 '18 23:05 jhenahan