ctags-elm
ctags-elm copied to clipboard
An Exuberant ctags file for the Elm language.
ctags-elm
An Exuberant ctags file for the Elm language.
Contributions welcome
The .ctags
file currently recognizes functions, constants, ports, types, type aliases, type constructors and modules. Contributions are welcome.
Usage
- Make sure you have Exuberant Ctags installed (Ubuntu: see exuberant-ctags package).
- Copy the contents of
.ctags
to your ctags file or if you do not have one, use.ctags
itself. See thectags
manual page for various locations of thectag
configuration file. - Run
ctags -R src
in your project top-level directory.- Assumes that your source code is below
src
. - See
ctags
manual for many other options.- Another example:
ctags -R --exclude="*.js" .
- Another example:
- Assumes that your source code is below
- Use normal editor commands to interact with ctags.
-
vim: this is native to vim and there are lots of commands - see
:help tags
. Here are three examples.-
ctrl-]
: jump to definition of function at cursor -
ctrl-t
: jump back -
g]
: list matching tags
-
-
vim: this is native to vim and there are lots of commands - see
- Run step 3 again for refresh. (There are ways to automate this that are outside the scope of this project.)
Known issues
See the issues list.
Related projects and documentation
-
vim-tagbar-ctags-elm has support for Elm in Vim Tagbar with Universal Ctags.
-
Vim and Ctags by Andrew Stewart describes the use of ctags