An open API service indexing awesome lists of open source software.

https://github.com/prabirshrestha/tsearch


https://github.com/prabirshrestha/tsearch

Last synced: about 2 months ago
JSON representation

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