alexpovel/srgn
View on GitHub ↗ ★ 915 Rust
A grep-like tool which understands source code syntax and allows for manipulation in addition to search
8 mentions on Hacker News by 2 people: 2 stories, 6 comments · first 2023-12-10 · latest 2026-02-12
20082026
-
…that one!). Note: I just wrote this, and version 0.13.2 is required for the above to work. [0]: https://github.com/alexpovel/srgn
comment by alexpovel · 2024-09-27 · in Refactoring Python with Tree-sitter and Jedi -
…aware. That example is for Python, but the tool speaks more languages (thanks to treesitter). https://github.com/alexpovel/srgn/blob/main/README.md#multip...
comment by alexpovel · 2024-09-03 · in Greppability is an underrated code metric -
The tool you are describing is what I am trying to build at https://github.com/alexpovel/srgn . The idea is a compromise between regex (think ripgrep) and grammar awareness (through tree-sitter).
comment by alexpovel · 2024-05-23 · in Amber: A code search and replace tool -
…imagine a blacklist could also work well, at smaller size but with more preprocessing needed. [0]: https://github.com/alexpovel/srgn/blob/0008cce1c71f0d83f6a31...
comment by alexpovel · 2023-12-13 · in Ask HN: What apps have you created for your own use? -
https://github.com/alexpovel/srgn It grew out of a niche, almost historical need: using a QWERTY keyboard, but needing access to German Umlauts (ä, ö, ü, as well as ß). Switching keyboard layouts is possible but exhausting (it's much more…
comment by alexpovel · 2023-12-13 · in Ask HN: What apps have you created for your own use? -
Wow! What a coincidence. Just the other day I finished "v1" of a similar tool: https://github.com/alexpovel/srgn , calling it a combination of tr/sed, ripgrep and tree-sitter. It's more about editing code in-place, not finding matches.…
comment by alexpovel · 2023-12-10 · in AST-grep(sg) is a CLI tool for code structural search, lint, and rewriting