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'.
Universal Ctags (https://ctags.io/) is an active fork of the venerable Exuberant Ctags (http://ctags.sourceforge.net/, last release 2009), that adds additional features, including support for more languages.
This is the snap package of universal-ctags (https://snapcraft.io/universal-ctags), which installs the application binary on any Linux distribution.
Usage
When installed, this snap provides executable universal-ctags
,
and alias ctags
.
ctags [options] [target files or directories]
eg. ctags -R .
(-R
or --recurse
to recursively search directories),
or ctags -R --languages=python --exclude=.git src/
.
This snap does not install the man pages. See the online universal-ctags man pages at http://docs.ctags.io/en/latest/man/ctags.1.html for options and usage details.
Limitations
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:
~/.src
.Lower-level hidden directories, eg. ~/proj/.src
, can be scanned.
Ctags usually reads config from the following directories:
~/.ctags.d/
is read as expected.ctags.d
is not read by default,
but the '--options' arg can be used to read from it..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 universal-ctags man pages are not installed. But you can see them online at http://docs.ctags.io/en/latest/man/ctags.1.html
The 'etags' executable alias (which defaults to Emacs style tags files)
is not installed. Use ctags --output-format=etags
or ctags -e
instead.
If these or other issues cause you problems, please file an issue at https://github.com/universal-ctags/ctags-snap/issues.
Thank you for your report. Information you provided will help us investigate further.
There was an error while sending your report. Please try again later.
You are about to open
Do you wish to proceed?
Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.
Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.
Snap can be installed on Pop!_OS from the command line. Open Terminal from the Applications launcher and type the following:
sudo apt update
sudo apt install snapd
Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.
To install universal-ctags, simply use the following command:
sudo snap install universal-ctags
Browse and find snaps from the convenience of your desktop using the snap store snap.
Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.
Get to know Canonical, the company behind the products.
The world's favourite Linux OS for servers, desktops and IoT.
One subscription for security maintenance, support, FIPS and other compliance certifications.
The app store for Linux: secure packages and ultra-reliable updates.
A pure-container hypervisor. Run system containers and VMs at scale.
Build a bare metal cloud with super fast server provisioning.
Upgrades, maintenance, support, and fully managed options for long-term, low-cost infra.
Software-defined storage that lowers your total cost of ownership.
App portability for K8s on VMware, Amazon, Azure, Google, Oracle, IBM and bare metal.
Deploy, integrate and manage applications at any scale, on any infrastructure.
Stream Android applications to any device.
The software collaboration platform behind Ubuntu.
Optimised Ubuntu for public clouds.
Spin up Ubuntu VMs on Windows, Mac and Linux.
Control and customise your cloud instances.
Systems management and security patching for Ubuntu.
Simplify and standardise complex network configuration.
AI and MLOps at any scale, on any cloud.
Deploy a fully functional cloud in minutes.