tsearch

Crates.iotsearch
lib.rstsearch
version0.1.10
sourcesrc
created_at2023-04-17 23:19:40.012077
updated_at2023-04-17 23:40:43.23979
descriptionSearch codebase using treesitter query syntax
homepage
repositoryhttps://github.com/prabirshrestha/tsearch
max_upload_size
id841947
size38,606
Prabir Shrestha (prabirshrestha)

documentation

README

tsearch

Search codebase using treesitter query syntax.

Inspired by https://johnaustin.io/articles/2022/blazing-fast-structural-search-for-c-sharp-in-rust.

Supported Languages

  • Typescript & TSX
  • Rust

CLI

tsearch -q -p path_to_code -- "((identifier) @name (#eq? @name \"App\"))"

VIM Plugin

Requires Vim8+. Neovim not supported.

Plug 'prabirshrestha/tsearch'

To start searching use :TSearch ((identifier) @name (#eq? @name "App")). To cancel search use :TSearchCancel.

Development

cargo run -- -q -p d:\path_to_code -- "((identifier) @name (#eq? @name \"App\"))"

LICENSE

MIT

Commit count: 40

cargo fmt