类似于 Ctags 的标记生成器,用于 CoffeeScript
A simple tool for generating CoffeeScript tags (Ctags compatible).
[![Build Status][travis-image]][travis-url]
CoffeeTags was created for use with Vim and TagBar plugin, however it accepts most common ctags arguments, therefore the following:
coffeetags -R -f TAGS
will generate standard TAGS file which later can be used with Vim (standard :tag command works as expected)
Just use coffeetags --help
gem install CoffeeTags (or sudo gem install CoffeeTags)
$ coffeetags --help
This can also be used as a vim plugin that will update tag files on save, and support visualization with TagBar. You will still need to install the gem as described above as well as install the plugin to vim. You can install it via:
git clone https://github.com/lukaszkorecki/CoffeeTags ~/.vim/bundle/CoffeeTagsNeoBundle 'lukaszkorecki/CoffeeTags'Bundle 'lukaszkorecki/CoffeeTags'~/.vim directoryIn you ~/.vimrc you can configure the plugin with:
let g:CoffeeAutoTagDisabled= " Disables autotaging on save (Default: 0 [false])
let g:CoffeeAutoTagFile= " Name of the generated tag file (Default: ./tags)
let g:CoffeeAutoTagIncludeVars= " Includes variables (Default: 0 [false])
let g:CoffeeAutoTagTagRelative= " Sets file names to the relative path from the tag file location to the tag file location (Default: 1 [true])See this issue on SublimeText/Ctags
CoffeeTags can work in 2 modes:
Second mode is activated by:
--include-vars to command line argumentslet g:CoffeeAutoTagIncludeVars=1 in your ~/.vimrc for vimMIT [travis-url]: https://travis-ci.org/lukaszkorecki/CoffeeTags [travis-image]: https://travis-ci.org/lukaszkorecki/CoffeeTags.svg?branch=master
暂无开放 Issues,或尚未同步最近议题。