How do I generate ctags for CoffeeScript?
Asked Answered
A

2

25

Is it possible to generate a ctags file for CoffeeScript in vim/MacVim?

Alvardo answered 17/5, 2011 at 13:54 Comment(2)
This should really be tagged coffeescript, not coffee, n'est pas? :)Absa
I had originally meant to tag it coffeescript but it seems there was a hiccup.Alvardo
B
5

There is no native support for Exuberant ctags, but if you just want to gather some variable and function definitions, you can create your own rules.

Here is an example that appeared in a google search.

Bonbon answered 17/5, 2011 at 14:20 Comment(0)
S
24

I released a tool which gives you what you need - coffeeTags

Satirical answered 23/9, 2011 at 19:23 Comment(4)
Do you think it's possible to use with CTags plugin for Sublime Text 2 (github.com/SublimeText/CTags)? I can't get it working together. Probably there is some format differencies?Kinswoman
@Kinswoman - sorry for ignoring your comment! SO's notification system is still a bit of a mystery ;-) As for your question: extra_tag_files option gives you the ability to specify additional ctags file. So lets say you set it to 'coffeescript.tags' and then you can use CoffeeTags to generate CoffeeScript tags with coffeetags -R . > coffeescript.tags. I don't use ST2 myself to it's a bit of a guess work. Let me know if that works and I will include this in CoffeeTag's readmeSatirical
@Kinswoman - yes, check this gist.Tercel
I think it's not more relevant since ST3 has its own code analysis which works quite good for CS as well. But thanks!Kinswoman
B
5

There is no native support for Exuberant ctags, but if you just want to gather some variable and function definitions, you can create your own rules.

Here is an example that appeared in a google search.

Bonbon answered 17/5, 2011 at 14:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.