Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New App Submission
Repo or homepage link:
https://github.com/alexpovel/srgn/
Description:
srgn
is a grep-like tool which understands source code syntax and allows for manipulation in addition to search.Why I think it's awesome:
srgn
leverages regex, which people are familiar with, and bundles it with the superpower of language grammar aware search. The latter is generally useful, but I've found existing tools (some listed here) sometimes aren't easily approachable, for example requiring specialized query syntax just to get started. For example,srgn
is based on tree-sitter (also awesome!), which offers a CLI of its own, but using it requires learning about their S-expression syntax. In comparison,srgn
is simple and easy to pick up. If you know regex and consultsrgn --help
or use shell completion, it is quite discoverable, with human-readable descriptions and error messages. The CLI is designed to guide users into correct usage (which Rust makes easy here). Its base usage can be brutally simple (likesrgn --titlecase
to titlecase input), and becomes more complex only when needed. Lastly,srgn
also allows for manipulation of its search results, allowing for e.g. sweeping refactors.