Hacker GitHub

← All repos

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

Mentions per year 8 mentions · busiest year 2024 (4)
20082026
  1. …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
  2. …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
  3. 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
  4. …imagine a blacklist could also work well, at smaller size but with more preprocessing needed. [0]: https://github.com/alexpovel/srgn/blob/0008cce1c71f0d83f6a31...
  5. 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…
  6. 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.…