Comment on Hister - Your Own Search Engine
cravl@slrpnk.net 1 month agoReplacing line breaks with nulls first is an option. That’s a lot of extra processing for very large blocks of text though.
Using regular grep is possible with the right flags, or you could also use pcre2grep with the -M flag, which should be available on every distro nowadays. See this Stack Overflow article for details.
activistPnk@slrpnk.net 1 month ago
pcregrepis not automatically installed with Debian but it’s in the official repos. It seems common to get:But it will help in many cases. I can see that it works on sufficiently small files. I noticed the built-in grep function for emacs can be modified to use pcregrep w/-M added instead of grep, which I find quite important because emacs makes it very easy to jump around to visit different results. In the end it’s still a hack.