Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to add an ability for filters to modify output? #73

Open
dolzenko opened this issue Sep 18, 2024 · 1 comment
Open

Is it possible to add an ability for filters to modify output? #73

dolzenko opened this issue Sep 18, 2024 · 1 comment

Comments

@dolzenko
Copy link

dolzenko commented Sep 18, 2024

Or simply add json output format so I can process it further with jq et al.

Use case -- using tree-sitter-grep to extract all SQL queries from multiple projects I have to collapse the multi-line strings which is somewhat awkward. If filters were able to modify matched output I would easily replace new lines in them and keep only the ones that look like SQL.

Also big thank you for the project, ❤️ the approach of keeping bloat factor low.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant