Ripgrep: Changing formatting of search results

Created on 30 Nov 2017  Â·  2Comments  Â·  Source: BurntSushi/ripgrep

When using --no-heading, is there any way to add a space between the filename and the :##:?

At the moment it concatenates the file, the line number and the line with the search result meaning that double clicking to select a file selects the number as well so double-click → middle-click to type a file name isn't possible.

question

All 2 comments

No, sorry. If you want this, I'd recommend writing a script that post-processes the output.

For anyone else having a similar issue, you can change how double-click selects words. For gnome-terminal, edit → General → Select-by-word-characters → remove : from textbox.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

c-cube picture c-cube  Â·  42Comments

BurntSushi picture BurntSushi  Â·  30Comments

birkenfeld picture birkenfeld  Â·  35Comments

BurntSushi picture BurntSushi  Â·  32Comments

BurntSushi picture BurntSushi  Â·  56Comments