Universal-Ctags packaged as an installable snap for Linux
Ctags parses source code to produce an index file, mapping the names of
symbols, like functions, classes, and variables, to the locations where
they are defined. This index is used by editors like Vim and Emacs
to enable features like 'go to definition'.
Compared to universal-ctags installed using apt, or compiled from source,
this snap has some limitations, introduced by snap security restrictions.
Source files cannot be scanned if they are:
Outside the user's $HOME directory, or
In a top-level hidden directory in $HOME, eg. ~/.src.
Lower-level hidden directories, eg. ~/proj/.src, can be scanned.
Ctags usually reads config from the following directories:
The user's ~/.ctags.d/ is read as expected.
The current directory's ctags.d is not read by default,
but the '--options' arg can be used to read from it.
The current directory's .ctags.d cannot be read.
Configuration in other places, specified using --options
or --options-maybe, will not be read if they are outside the
user's HOME, or in a top-level hidden directory.
Tag files written using '-f' options or similar may not be outside
the user's $HOME directory, nor in a top-level hidden file or directory.
You may be able to work around this by using -f - and redirecting stdout
to the required location.
The packages for RHEL 8 and RHEL 7 are in each distribution’s respective Extra Packages for Enterprise Linux (EPEL) repository. The instructions for adding this repository diverge slightly between RHEL 8 and RHEL 7, which is why they’re listed separately below.
The EPEL repository can be added to RHEL 8 with the following command: