An Exuberant ctags file for the Elm language.
The .ctags
file currently recognizes functions, constants, ports, types, type aliases, type constructors and modules. Contributions are welcome.
- 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 cursorctrl-t
: jump backg]
: 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.)
See the issues list.
-
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