Readit News logoReadit News
tomschafer commented on Scooter - an interactive find-and-replace terminal UI app   github.com/thomasschafer/... · Posted by u/tomschafer
tomschafer · 3 months ago
I haven't been able to find a faster way to find and replace across a large repo, while respecting ignore files, than Scooter in `--no-tui` mode. If you know of a quicker way, let me know!
tomschafer commented on Show HN: Scooter – Interactive find and replace in the terminal   github.com/thomasschafer/... · Posted by u/tomschafer
guytv · 10 months ago
Am I the only one who thought this could alsop work lik "just" a find tool, only to discover it silently erased that word from all files in the directory without asking for confirmation? This felt riskier than rm -rf.
tomschafer · 10 months ago
This should only happen if you hit enter on the confirmation screen - was it not clear that this would happen? I'd rather not slow users down by making them confirm that they definitely want to perform the replacement, but I'm happy to hear about other ways to make it clear that a replacement is going to be performed
tomschafer commented on Show HN: Scooter – Interactive find and replace in the terminal   github.com/thomasschafer/... · Posted by u/tomschafer
aerzen · 10 months ago
Cool.

I assumed it uses ripgrep (or the underlying walkdir) because that's the established high-performance tool for this. But apparently not.

tomschafer · 10 months ago
It uses https://docs.rs/ignore/latest/ignore/ to walk dirs while respecting ignore files
tomschafer commented on Show HN: Scooter – Interactive find and replace in the terminal   github.com/thomasschafer/... · Posted by u/tomschafer
lopkeny12ko · 10 months ago
[flagged]
tomschafer · 10 months ago
Not affiliated, I just built a little tool to make my life easier and thought I'd share
tomschafer commented on Show HN: Scooter – Interactive find and replace in the terminal   github.com/thomasschafer/... · Posted by u/tomschafer
tomschafer · 10 months ago
I use Helix, which doesn't have find and replace built in!

u/tomschafer

KarmaCake day50May 24, 2024View Original