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

Add entry for file names #10

Closed istathar closed 11 years ago

istathar commented 11 years ago

Fully qualified module names are nice, but sometimes you just want to jump to Filename.hs somewhere in your project tree. This patch adds tags for the basenames of the files as they are encountered, so you can do

:tag Connection.hs

and have it pull up src/Network/Http/Connection.hs which is a nice complement to pull #9 where you can do

:tag Network.Http.Connection

AfC

luqui commented 11 years ago

Have you seen command-t?

I'm slightly wary of this patch... the only rational reason I can come up with is that Connection.hs could mean two different things. But nobody names their identifiers hs, right, so it is probably fine. Alright, I'll merge.

istathar commented 11 years ago

I'm slightly wary of this patch... the only rational reason I can come up with is that Connection.hs

I'm slightly wary of this patch. The concern I came up with was wondering what would happen if you had two files the same name in different hierarchies. But :tselect seems to do the right thing there. If it turns out to be a problem, we can fix it (or be rid of it) it, sure.

AfC