[konsole] [Bug 431895] Direct click on file in grep result doesn't open file
Maciej Stanczew
bugzilla_noreply at kde.org
Tue Jan 4 19:19:55 GMT 2022
https://bugs.kde.org/show_bug.cgi?id=431895
Maciej Stanczew <maciej.stanczew+b at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |maciej.stanczew+b at gmail.com
--- Comment #3 from Maciej Stanczew <maciej.stanczew+b at gmail.com> ---
This now (mostly) works for me with Konsole 21.12.0, Frameworks 5.89.0, and
Plasma 5.23.5.
I can ctrl-click results of grep -n, like:
test.txt:5: match
and the file test.txt is opened in Kate at line 5, just as expected.
This also works for paths which include subdirectories (previously those were
not even clickable):
dir/test.txt
/tmp/dir/test.txt
dir/test.txt:5: match
/tmp/dir/test.txt:5: match
It doesn't however work reliably if the line which matches doesn't start with a
whitespace. For example, if I grep for "match" and the line is:
test.txt:5:match-n
then ctrl-click will work; however if there is a digit in the output:
test.txt:5:match-1
then I get "The file or folder /tmp/dir/test.txt:5:match-1 does not exist".
It seems to be a problem only for digits, all other printable ASCII characters
are fine.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list