Crates.io | ttags |
lib.rs | ttags |
version | 0.4.1 |
source | src |
created_at | 2023-03-17 01:10:38.340275 |
updated_at | 2024-05-22 15:43:06.205233 |
description | Generate ctags using Tree Sitter |
homepage | |
repository | https://github.com/npezza93/ttags |
max_upload_size | |
id | 812222 |
size | 56,133 |
ttags generates ctags using Tree-sitter.
cargo install ttags
Binaries are also available on the releases page of the repo. Download the tar file, and place the executable in your path.
git clone https://github.com/npezza93/ttags
cd ttags
cargo build --release
./target/release/ttags $(git ls-files)
Give a list of file paths and/or directories to ttags to parse and generate.
ttags $(git ls-files)
-a
or --apend
- Will keep your tag file in tact and only update the tags
for the files passed.
-r
or --tag-relative
- Make paths outputed in the tags file be relative to the
current working directory (i.e. where you called ttags
)? By default, the tag
path is relative to the tag-file
location.
-f
or --tag-file=file
- Path to the file where tags should be written. If
-
is passed, tags are outputted to stdout.
lsp
- Starts an LSP server that updates the tags for a file when the file is
saved