Skip to content
Bruno Heridet edited this page Jul 11, 2017 · 3 revisions

grep is a command-line utility for searching plain-text data sets for lines that match a regular expression.

When you use the kakoune's grep command, it populates a special *grep* buffer, listing all found occurrences. You can then use grep-next-match or grep-previous-match to navigate between them.

By default, kakoune will run grep -RHn in the background. You can customize this value by setting the grepcmd option. For instance, you may want to to rely on a similar tool to do the job, such as Ag (The Silver Searcher), Ack or ripgrep:

set global grepcmd 'rg --column'
Clone this wiki locally