CoffeeTags
A simple tool for generating CoffeeScript tags (Ctags compatible ).
Showing only functions (right) or with variables included (left)
Designed for use with Vim + TagBar plugin but also works without it. Simply configure your Vim for use with a regular tags file and generate them with the following command:
coffeetags -R -f TAGS
Requirements
- ruby (either 1.8.7 or 1.9.2)
- Vim
optional
Halp!
coffeetags --help
-R - process current directory recursively and look for all *.coffee files
--f <file> - save tags to <file>, if <file> == '-' tags get print out to STDOUT (jscatgs style)
--version - coffeetags version
--vim-conf - print out tagbar config for vim
--include-vars - include objects/variables in generated tags
combine --vim-conf and --include-vars to create a config which adds '--include-vars' option
Installation
get the
coffeetags
toolgem install CoffeeTags
add TagBar config to your .vimrc
coffeetags --vim-conf >> ~/.vimrc
(orcoffeetags --vim-conf --include-vars >> ~/.vimrc
)open your coffeescript file and open TagBar.
Done!
TODO
- squash all bugs