Re:Feature comparison of ack, ag, Git-grep, grep and ripgrep
by petdance on Sunday October 24, 2021 @04:35PM
(#28981635)
I'm glad you appreciate that you can install ack anywhere. It's exactly for that use case that I have kept ack able to be a single text file download. Also, it only requires Perl 5.10.1, so it's OK if you're using an old Perl.
Re:Feature comparison of ack, ag, Git-grep, grep and ripgrep
by oxplot on Sunday October 24, 2021 @08:39PM
(#28983341)
Hmm — there is a project that allows you to compile a single binary that is cross platform across Linux, Mac and Windows. Wondering if ripgrep can be compiled in such a way and that would make it very close to the portability you have with ack.
Re:Feature comparison of ack, ag, Git-grep, grep and ripgrep
by petdance on Sunday October 24, 2021 @09:31PM
(#28983615)
That still might run afoul of locked down networks like I've seen at banks. Users couldn't install any binaries at all, but with something like ack it's just cut & paste some text into a text file. ack can literally be a select-all, Ctrl-C, switch windows, "cat > ack", Ctrl-V.
Re:Feature comparison of ack, ag, Git-grep, grep and ripgrep
by sva_ on Sunday October 24, 2021 @11:37AM
(#28978907)
I feel the same way about ripgrep, and also fzf - especially both in combination. I only started using them both a few months ago, yet it feels like a fundamental way of doing computing.
Re:Feature comparison of ack, ag, Git-grep, grep and ripgrep
by bloopernova on Sunday October 24, 2021 @11:42AM
(#28978960)
fzf is wonderful. I feel like we're only scratching the surface of its utility. Using it with git add is so fast, just "ga" (an alias), hit tab (for each file) then enter.
Re:Feature comparison of ack, ag, Git-grep, grep and ripgrep
by hahfjjjshj on Sunday October 24, 2021 @12:49PM
(#28979619)
I find interactive git add more useful most of the time, 'git add -i' then select what's needed from the menu
Re:Feature comparison of ack, ag, Git-grep, grep and ripgrep
by oconnor663 on Sunday October 24, 2021 @06:38PM
(#28982588)
Figuring out how to integrate that with FZF would be really something. Being able to easily go up and down the list, and visualize the whole thing, would make things a lot smoother.
Re:Feature comparison of ack, ag, Git-grep, grep and ripgrep
by hahfjjjshj on Sunday October 24, 2021 @12:53PM
(#28979662)
Any examples of using them in combination? I've only recently started using ripgrep despite being aware of it for a while.
Ack is also nice, I've used that quite a bit too. It has the advantage of being in Perl, so if you're on a "secure" computer (no compiler), you can still use a fast + featureful search tool.