https://github.com/prabirshrestha/tsearch
https://github.com/prabirshrestha/tsearch
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/prabirshrestha/tsearch
- Owner: prabirshrestha
- License: mit
- Created: 2023-04-11T00:19:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T04:42:39.000Z (about 2 months ago)
- Last Synced: 2025-04-15T06:04:13.678Z (about 2 months ago)
- Language: Rust
- Size: 90.8 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
```sh
tsearch -q -p path_to_code -- "((identifier) @name (#eq? @name \"App\"))"
```# VIM Plugin
Requires Vim8+. Neovim not supported.
```vim
Plug 'prabirshrestha/tsearch'
```To start searching use `:TSearch ((identifier) @name (#eq? @name "App"))`.
To cancel search use `:TSearchCancel`.# Development
```sh
cargo run -- -q -p d:\path_to_code -- "((identifier) @name (#eq? @name \"App\"))"
```# LICENSE
MIT