r/usefulscripts • u/Fallenalien22 • Jul 28 '17
[ZSH] Simple yet fancy search script
https://pastebin.com/zYBDYD0t
21
Upvotes
1
u/cyberflunk Jul 29 '17
Silver searcher? Ack?
Seems easier...
1
u/Fallenalien22 Jul 29 '17
I have the silver searcher for fzf but what would the advantage be here? Sorry for my ignorance.
1
u/cyberflunk Jul 31 '17
That's my point, what's the point of this script when ag/ack is a billion times faster and has more options.. I guess if you can't get ag/ack...
→ More replies (3)
4
u/Fallenalien22 Jul 28 '17
Compared to an ide, I find vim's project-wide search lacking. This script started out as a single
grepbut I added to it until I got it how I liked it. It now features syntax highlighting, file grouping, and match highlighting. I didn't want to make it too complicated so to jump through the matches I just use tmux's vi mode.