A little tool that watches a given directory and generates ctags whenever you save your code.
Many editors and tools make use of ctags to provide a better coding experience. This is great. The only issue is that every time you add a class, function, variable, method, etc. you need to run ctags again so that your editor knows about your new code. Autotags solves that issue by keeping an eye on your files and then running ctags for you when anything changes.
TODO
TODO
Autotags is available in AUR (https://aur.archlinux.org/packages/autotags/). You can install it using your favorite AUR helper.
$ aurhelper -S autotags
- Install
ctags
- Install
inotify-tools
- Download
autotags
somewhere in your$PATH
You're out of luck. Autotags depends on inotify which is a Linux specific protocol.
Start generating ctags with:
$ autotags watch
This will watch the current directory and generate ctags whenever you save your files.
Optionally, you can specify a folder to watch:
$ autotags watch path/to/directory
Once you're done, stop generating ctags with:
$ autotags stop
This will stop watching the current directory.
Optionally, you can specify a folder to stop watching:
$ autotags stop path/to/directory
You can get more help with:
$ autotags help
Autotags creates files in the directory it's watching. If you're running autotags in a directory that is managed by source control you're going to want to ignore those files.
You can do this by adding the following lines in your source control's ignore file:
.tags
.autotags.pid
If you have a question, found a bug or would like to discuss anything, open a pull request.
If you'd like to contribute code:
- Fork this repository
- Clone your fork
- Make, commit & push your changes
- Open a pull request
Check out CONTRIBUTING.md for more details on how to contribute.