Skip to content
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

Add support for ctags #24

Open
ajhager opened this issue Jan 30, 2016 · 8 comments
Open

Add support for ctags #24

ajhager opened this issue Jan 30, 2016 · 8 comments

Comments

@ajhager
Copy link
Contributor

ajhager commented Jan 30, 2016

No description provided.

@ggerico
Copy link

ggerico commented Feb 13, 2016

that should be great indeed.

@chalmagean
Copy link

+1

@jweissman
Copy link

jweissman commented Sep 28, 2016

Is this something ctags itself would maybe need to support? When I run ctags -R . in the root of an Elm project, it only seems to generate tags for the (quite mangled) symbols in elm-stuff.

(For what it's worth, ctags --list-languages returns a list of languages it supports, and Elm does not appear in the list on my machine.)

@kbsymanz
Copy link

kbsymanz commented Oct 1, 2016

For what it is worth, I have created a rudimentary ctags extension for Elm: ctags-elm. I have not done any sort of integration with elm-vim though.

Regarding ctags -R . picking up symbols in elm-stuff, that is an issue in ctags-elm too. For the moment, ctags -R src, avoids the problem. Still looking for a better solution.

@ajhager
Copy link
Contributor Author

ajhager commented Oct 2, 2016

Thanks @kbsymanz! I think that is a great start.

To solve your immediate problem, you can use ctags -R --language-force=Elm to filter just the elm files. You are still going to get the elm files in your tests and examples of course.

I have added preliminary tagbar support based on your elm .ctags file. I will keep an eye on the repo and update as you improve it.

@kbsymanz
Copy link

kbsymanz commented Oct 5, 2016

To solve your immediate problem, you can use ctags -R --language-force=Elm to filter just the elm files. You are still going to get the elm files in your tests and examples of course.

That did not work for me. JS files still were found in the tags file. But I did eventually get this to work pretty well.

ctags -R --exclude="*.js" .

The --exclude option can be used repeatedly in order to eliminate other file types.

@ajhager
Copy link
Contributor Author

ajhager commented Oct 5, 2016

I was actually using the following, but saw the --language-force option at the last minute and misunderstood its meaning. It seems to work.

ctags -R --languages=-all,+Elm

@kbsymanz
Copy link

kbsymanz commented Oct 5, 2016

Yes, that does seem to work well. Thanks.

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

No branches or pull requests

5 participants