Add entry for file names #10

Merged
merged 2 commits into from Jan 18, 2013

Conversation

Projects
None yet
2 participants
Contributor

afcowie commented Jan 18, 2013

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

afcowie added some commits Jan 18, 2013

Add entry for file names
Fully qualified module names are nice, but sometimes you just want to
jump to Filename.hs somewhere in your project tree. This branch adds
tags for the basenames of the files as they are encountered.
Owner

luqui commented Jan 18, 2013

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.

luqui added a commit that referenced this pull request Jan 18, 2013

@luqui luqui merged commit 7d571b6 into luqui:master Jan 18, 2013

Contributor

afcowie commented Jan 18, 2013

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

@afcowie afcowie deleted the afcowie:file-names branch Jan 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment