4 ms·
I prefer my terminals dumb and without much color, as the UNIX gods intended them to be. This being said, I'm in love with `fzf`, my workflow improved markedly
by ddalex 7y ago
I prefer my terminals dumb and without much color, as the UNIX gods intended them to be.
This being said, I'm in love with `fzf`, my workflow improved markedly after scripting (on mac)
`ggvi() { git grep "$@" | fzf | sed \"s/:/ +/\" | cut -d \":\" -f 1 | gxargs -r -o vim }`
- mkesper 7y agoYou can also combine it with ripgrep. Much faster than git grep.
- ddalex 7y agoI actually time-tested git grep vs ripgrep, and I'm not seeing meaningful differences on my repos. ripgrep smokes regular grep but for some reason git grep is just as fast as ripgrep
- usr1106 7y agogit grep is parallel, too.
- burntsushi 7y agoBecause benchmarking these tools is difficult to do correctly, and is heavily workflow dependent. If your search space is small, them it doesn't really matter what tool you use for example, they are all probably going to be pretty quick. I wrote more about this here: https://lobste.rs/s/0kaozs/don_t_underestimate_grep_based_code#c_vddxv7 https://lobste.rs/s/0kaozs/don_t_underestimate_grep_based_co...
- vectorEQ 7y agohave to agree that colours often disctract more than are of use. they stop you critically reading imo. but i guess that's also a matter of taste or something like that.