Crates.io | tsearch |
lib.rs | tsearch |
version | 0.1.10 |
source | src |
created_at | 2023-04-17 23:19:40.012077 |
updated_at | 2023-04-17 23:40:43.23979 |
description | Search codebase using treesitter query syntax |
homepage | |
repository | https://github.com/prabirshrestha/tsearch |
max_upload_size | |
id | 841947 |
size | 38,606 |
Search codebase using treesitter query syntax.
Inspired by https://johnaustin.io/articles/2022/blazing-fast-structural-search-for-c-sharp-in-rust.
tsearch -q -p path_to_code -- "((identifier) @name (#eq? @name \"App\"))"
Requires Vim8+. Neovim not supported.
Plug 'prabirshrestha/tsearch'
To start searching use :TSearch ((identifier) @name (#eq? @name "App"))
.
To cancel search use :TSearchCancel
.
cargo run -- -q -p d:\path_to_code -- "((identifier) @name (#eq? @name \"App\"))"
MIT