luqui / hothasktags

A haskell ctags implementation that is aware of qualified imports, among other cool stuff
BSD 3-Clause "New" or "Revised" License
30 stars 16 forks source link

Recursive descent? #8

Closed istathar closed 8 years ago

istathar commented 11 years ago

(not a bug report so much as a set of questions for you to comment on before I do some hacking)

It's a bit of a pain to have to:

$ find src | xargs hothasktags

if I look at the hasktags program from the the hasktags package (which I used to use), invocation is:

$ hasktags -c src tests

which raises another point; I can list multiple directories. Yes, you can be more clever about this with some fancier shell scripting, but thought I'd mention it, although, having done so,

$ hasktags -c .

works too, and so would find . -type -f -name '*.hs'. Either way, it would be nice if hothasktags could take care of the recursive descent to find Haskell source files itself. I'll use filemanip for that if that's ok?

The second matter is that it's a bit obscure to have to redirect the output.

$ find ... | xargs hothasktags > tags

Surely just writing ./tags would do the trick?

Anyway, right now I have the whole long invocation as a target in my Makefile, but it's a bit of a pain to run casually in the tree of someone else's project, which is why I raised this. Love to be able to just do

$ hothasktags .

or so.

AfC

luqui commented 11 years ago

Yeah I agree that would be nice. I doubt I'll have the spare time to implement this anytime soon. I'll happily accept a pull req if you do, though.

istathar commented 11 years ago

Sure, I'll give it a go. Assign this one to me.

AfC

luqui commented 11 years ago

It doesn't seem that I can...