-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get fast-tags to work with other editors, e.g. Atom #19
Comments
Here's what hasktags -x generates:
fast-tags generates this:
So there are lots of differences. I don't have atom, so I don't know what it doesn't like, but it would be easy to test by editing the hasktags output until it looked like the fast-tags one and seeing where atom stops liking it. If you do the testing I'd be happy to implement the change. |
Ok, here's the answer: the only part of the hasktags output that Atom needed, the part that made all the difference was The headers at the top of the tags file seem irrelevant |
The part between the filename and ;" is interpreted as a command by vim. Numbers are commands; they take you to the line number they indicate. But searches are also commands. Atom must not be understanding number-as-command. |
ah, well, knowing that then, could be simple to file a bug with Atom to recognize number-as-command as an alternative option. Of course, search works too and for Vim as well… |
Strange that atom would implement the hard one but not the easy one. I think historically /.../ syntax was added because it was less likely to be wrong when a line is added above, but that doesn't really apply to fast-tags, since it's intended to be run after every edit. If atom doesn't want to add this feature I can add it to fast-tags, but it wouldn't be entirely trivial. It already saves a bit of the line for emacs tags (I don't really understand how those work), so I'd have to extend that to save the whole line. |
Here's the real Atom ticket already existed: atom/symbols-view#92 |
Perhaps related, This thread discusses how |
I didn't add the original code and I don't know anything about emacs, so this is just a guess, but it seems to produce the same output as hasktags, which is reported as working. issue #19
@ntc2 This should fix your problem, give it a try. I'm leaving the issue open because it's for a different thing, namely that atom supports "/search" syntax but not ":linenumber" syntax. |
it is possible that #43 will fix this, if these editors use Emacs formatted |
Currently, for reasons I don't understand (but haven't deeply investigated), fast-tags tags files don't work fully with Atom. Atom does allow browsing by tags but not jumping to tag under cursor. By contrast,
hasktags -x -c
works fully with Atom. The Hasktags option also works fully with Vim without trouble. I like using fast-tags so I get easy updates with Vim, but would want to have it work for Atom too, both for me on occassion and for others who don't use Vim.Whatever the difference, it seems we should be able to figure out what's happening and fix it to make it work. I was hoping the 1.1.1 update would do it, but apparently not (by my testing).
The text was updated successfully, but these errors were encountered: