| Crates.io | tsfind |
| lib.rs | tsfind |
| version | 0.3.0 |
| created_at | 2024-09-12 16:28:31.17814+00 |
| updated_at | 2025-04-03 01:37:50.549304+00 |
| description | Extract code using tree-sitter queries |
| homepage | https://github.com/Vonr/tsfind |
| repository | https://github.com/Vonr/tsfind |
| max_upload_size | |
| id | 1372901 |
| size | 36,847 |
Extract code using tree-sitter queries.
Inspired by helixbass/tree-sitter-grep which reports entire lines instead of just the captures.
Quite WIP, command line interface should be considered unstable - use at your own risk.
Extract code using tree-sitter queries
Usage: tsfind [OPTIONS] <LANGUAGE> [PATHS]...
Arguments:
<LANGUAGE> [possible values: rust, go, js, ts, tsx, php, php-only]
[PATHS]...
Options:
-q, --query <QUERY> The query to find matches for
-Q, --query-file <QUERY_FILE> The file containing the query to find matches for
-H, --hidden Recurse into hidden files and directories
-C, --hidden-captures Show captures starting with '_'
-t, --only-text Only report captured text
-l, --list Only report files with matches
-s, --separator <SEPARATOR> Separator for matches. Only useful with --only-text/-t or --list/-l [default: "\n"]
-h, --help Print help
-V, --version Print version