Recently Written · git

tag-gen

Generate tags for each directory and say what programming languages to look for

git clone https://github.com/equwal/tag-gen

Log | Files | Refs


README.md (1447 bytes)

1 Generate tags for a list of files and extensions.
2 
3 ![EXUBERANT ctags](https://therealtruex.com/static/ctags.webp)
4 
5 # PURPOSE:
6 Specify which directories to generate tags for, and what kinds of files
7 to generate them for in each. Good for tag jumping in an editor.
8 
9 # Requirements
10 - An ANSI Common Lisp
11 - A ctags-like program.
12 - Desire
13 
14 # Non-features/Non-Requirements
15 - Not multithreaded!
16 - Works with any tag program (doesn't do any tagging itself)!
17 - No special configuration language, just two sexps!
18 - Does not use Roswell!
19 - Works on my machine!
20 
21 # Install
22 
23 1. put this folder somewhere
24 2. put the config folder somewhere
25 3. put the tag-gen.sh and tag-gen-root.sh somewhere
26 4. put the cron job in
27 5. put your configuration in
28 
29 Edit the config/ files with the paths you want tagged.
30 
31 Add a command to cron like:
32 ```
33 */29 * * * * su username -c 'tag-gen.sh      /path/to/tag-gen/local.conf /usr/bin/etags'
34 */29 * * * * su root     -c 'tag-gen-root.sh /path/to/tag-gen/root.conf  /usr/bin/etags'
35 ```
36 for routine tagging.
37 
38 tags.conf needs to contain this kind of format:
39 ```
40 "/path/to/ctags/program"
41 
42 (("<directory>" ("<ext>"...))
43   ...)
44 ```
45 The tags program reads the file extensions to infer what language to do tags for. Specify the directories you want to
46 use tag browsing programs on.
47 
48 
49 See examples in config-examples. Configuration is **mandatory** for the
50 program to work. The format is just read with the lisp reader and is
51 very simple.