Re:Ask HN: What's the best 'non-frustrating' search/director...
by softawre on Saturday October 15, 2016 @01:15PM
(#12714748)
faster still: https://github.com/BurntSushi/ripgrep
Re:Ask HN: What's the best 'non-frustrating' search/director...
by e12e on Saturday October 15, 2016 @02:35PM
(#12715115)
Interesting. This probably the first utility in Rust I'm aware of that looks like it might belong on a production system (other than "cargo" and other rather excellent rust tooling). Nice way to show off rusts regular expression engine too.
Re:Ask HN: What's the best 'non-frustrating' search/director...
by luibelgo on Saturday October 15, 2016 @05:06PM
(#12715643)
Golang flavour https://github.com/monochromegane/the_platinum_searcher
Re:Ask HN: What's the best 'non-frustrating' search/director...
by lucb1e on Saturday October 15, 2016 @01:25PM
(#12714809)
Thanks! I installed it a and aliased grep to 'echo Try ag'.
Re:Ask HN: What's the best 'non-frustrating' search/director...
by hulahoof on Sunday October 16, 2016 @07:52AM
(#12718200)
May as well alias grep to ag XD
Re:Ask HN: What's the best 'non-frustrating' search/director...
by lucb1e on Sunday October 16, 2016 @12:05PM
(#12719229)
Thought of that, but a quick glance over ag's man page shows there are options that I commonly use with grep that work differently with ag. I don't want to mess something up so I'd rather just show myself a reminder.
You're in for a treat then: the package name is "silversearcher-ag".
Next time you want to grep a directory of files: instead of grepping it, pause, remember this comment, install it and then do "ag <searchterm>" instead.
It's quite a bit faster. Well, lots faster.