{"id":15282575,"url":"https://github.com/vonr/tsfind","last_synced_at":"2025-04-12T23:04:38.374Z","repository":{"id":254700265,"uuid":"841918147","full_name":"Vonr/tsfind","owner":"Vonr","description":"Extract code using tree-sitter queries","archived":false,"fork":false,"pushed_at":"2024-09-14T11:28:59.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T09:45:28.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vonr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-13T09:59:20.000Z","updated_at":"2024-09-19T02:08:22.000Z","dependencies_parsed_at":"2024-08-25T13:47:25.982Z","dependency_job_id":"06e97adb-7e55-43b7-beb6-09fa455b24b9","html_url":"https://github.com/Vonr/tsfind","commit_stats":null,"previous_names":["vonr/tsfind"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vonr%2Ftsfind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vonr%2Ftsfind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vonr%2Ftsfind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vonr%2Ftsfind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vonr","download_url":"https://codeload.github.com/Vonr/tsfind/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240152188,"owners_count":19756039,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-30T14:27:03.252Z","updated_at":"2025-02-22T09:31:29.974Z","avatar_url":"https://github.com/Vonr.png","language":"Rust","readme":"# tsfind\n\n![Demo](https://github.com/user-attachments/assets/26255220-c94a-419d-ab8b-a0b20f6ab7c2)\n\nExtract code using [tree-sitter](https://tree-sitter.github.io/tree-sitter/) queries.\n\nInspired by [helixbass/tree-sitter-grep](https://github.com/helixbass/tree-sitter-grep) which reports entire lines instead of just the captures.\n\nQuite WIP, command line interface should be considered unstable - use at your own risk.\n\n# Usage\n\n```\nExtract code using tree-sitter queries\n\nUsage: tsfind [OPTIONS] \u003cLANGUAGE\u003e [PATHS]...\n\nArguments:\n  \u003cLANGUAGE\u003e  [possible values: rust, go, js, ts, tsx, php, php-only]\n  [PATHS]...  \n\nOptions:\n  -q, --query \u003cQUERY\u003e            The query to find matches for\n  -Q, --query-file \u003cQUERY_FILE\u003e  The file containing the query to find matches for\n  -H, --hidden                   Recurse into hidden files and directories\n  -C, --hidden-captures          Show captures starting with '_'\n  -t, --only-text                Only report captured text\n  -l, --list                     Only report files with matches\n  -s, --separator \u003cSEPARATOR\u003e    Separator for matches. Only useful with --only-text/-t or --list/-l [default: \"\\n\"]\n  -h, --help                     Print help\n  -V, --version                  Print version\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvonr%2Ftsfind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvonr%2Ftsfind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvonr%2Ftsfind/lists"}