fast-tags icon indicating copy to clipboard operation
fast-tags copied to clipboard

Support for alex/happy/c2hs

Open vmchale opened this issue 5 years ago • 2 comments

I mentioned this on the mailing list and I figured I'd mention it here so that it can be tracked and to indicate interest.

fast-tags fits into my workflow better than using echo ':ctags' | cabal new-repl and so if such a feature were added I would use it instead.

Thanks!

vmchale avatar Apr 04 '19 19:04 vmchale

I think there are two steps for this: fast-tags has to recognize LINE pragmas, and then you have to run it on the generated .hs output, not the alex or happy source. It's not to hard if you don't use the incremental update, because what used to be fast-tags -R src would become fast-tags -R src dist/build (or wherever the build system sticks the generated .hs files). For incremental update, you'd have to convince vim that when you save Something.x it should actually run fast-tags dist/build/Something.hs. That's not bad actually, just do a autocmd *.x fast-tags 'dist/build/' subst('.x', '.hs', expand('%')), or whatever mongrel syntax vim uses for that.

If I implement the LINE pragma support, would that be enough for you to make it useful?

elaforge avatar Apr 06 '19 04:04 elaforge

works for me!

vmchale avatar Apr 06 '19 22:04 vmchale