GitXplorerGitXplorer
n

ttags

public
22 stars
4 forks
1 issues

Commits

List of commits on branch main.
Verified
452b705f112b8bc9319bd72ac715ba641157f13e

Update packages

nnpezza93 committed 15 days ago
Verified
cef61da65d8c84c50ecbcb6d481a2a723e826b74

Update crates

nnpezza93 committed 15 days ago
Verified
b9c0b3feb76a5e8b253223a336ff8d5716d23409

Version bump

nnpezza93 committed a month ago
Verified
a9725b5665089c31285bc0e92947caef544bde67

Clippy update

nnpezza93 committed a month ago
Verified
c5c21722348ad4d9ec97afcd7429ac69a33ac3c9

Ignore if the file fails

nnpezza93 committed a month ago
Verified
657497dfc54b280176adbde78f247b2861834f28

Fixes for latest tree sitter

nnpezza93 committed a month ago

README

The README file for this repository.

ttags

ttags generates ctags using Tree-sitter.

Installation

macOS and Linux
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.

From source
git clone https://github.com/npezza93/ttags
cd ttags
cargo build --release
./target/release/ttags $(git ls-files)

Usage

Give a list of file paths and/or directories to ttags to parse and generate.

ttags $(git ls-files)

Options

  • -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

Supported languages

  • [x] Haskell
  • [x] JavaScript
  • [x] Nix
  • [x] Ruby
  • [x] Rust
  • [x] Swift