Repository navigation
How do I enable hyperlinks on hidden paths in Konsole? #3441
|
Hi! I discovered that clicking to open a path the editor works only for paths not starting with a dot, which puzzled me, as Is there setting that fixes this issue? Info:
Thank you! |
Replies: 2 comments 1 reply
|
I think this is probably Konsole’s hyperlink/path detection rather than ripgrep itself.
and Konsole does not turn that into a clickable link, then the terminal emulator is probably failing to recognize paths that start with One workaround to test is forcing paths to include rg --hidden --no-heading --no-line-number --color=never 'search string' ./so the output becomes more like: That may be easier for Konsole to recognize than a path starting directly with Also, on the separator point: ripgrep does have separator options now. For matching lines you can use rg --hidden --no-heading --field-match-separator $'\t' 'search string'So if Konsole recognizes grep output better because of a different separator or path shape, it may be worth testing In short: I do not think hidden paths are intentionally unsupported by ripgrep. This sounds more like a terminal hyperlink-detection issue, and |
|
You're spot on!
Thank you! |
I think this is probably Konsole’s hyperlink/path detection rather than ripgrep itself.
rg --hiddenshould print matches from hidden files/directories normally. If the output contains a path like:and Konsole does not turn that into a clickable link, then the terminal emulator is probably failing to recognize paths that start with
.. ripgrep is just printing text; the clickable editor link is added by Konsole.One workaround to test is forcing paths to include
./:rg --hidden --no-heading --no-line-number --color=never 'search string' ./so the output becomes more like:
That may be easier for Konsole to recognize than a…