ggreer / the_silver_searcher

A code-searching tool similar to ack, but faster.

Home Page:http://geoff.greer.fm/ag/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Cheerleading mode 😬 πŸŽ‰πŸ“£

emilebosch opened this issue Β· comments

I know this will probably never make it. But I'd love a cheerleading mode. When I need to refactor and I see a thousand things I need to rename after I search I dispair. I want AG to redo the search and cheer me up until there are no found items left.

It would work like this:

ag my-needle-thing-to-rename --cheerlead
5020 occurrences remaining, stay strong you can do it!

Behind the scenes it will redo the search at a 1 second interval (or via inotify monitor the found files)
And then when your refactor, it will redo the search resulting in the found items to reduce so the amount will drop:

2000 occurrences remaining, wow, almost there!

And then finally when you're up to 10 it start counting down until you're done!

Only 10 left, you're nailing it!

And finally

Wow 5020 things refactored, zero left!

This put a smile on my face. Definitely doesn't belong in ag, but now I'm tempted to write cheerleader.sh... πŸŽ‰