[konsole] [Bug 429184] New: File links of the form name:number:number don't ignore numbers when opening
FeepingCreature
bugzilla_noreply at kde.org
Mon Nov 16 11:00:07 GMT 2020
https://bugs.kde.org/show_bug.cgi?id=429184
Bug ID: 429184
Summary: File links of the form name:number:number don't ignore
numbers when opening
Product: konsole
Version: 20.08.2
Platform: Other
OS: Linux
Status: REPORTED
Severity: minor
Priority: NOR
Component: kpart
Assignee: konsole-devel at kde.org
Reporter: default_357-line at yahoo.de
Target Milestone: ---
SUMMARY
When a filename appears in the program output, it may be underlined and opened
directly by control-clicking.
When the filename is followed by a :number or :number:number annotation, this
usually signifies a line number or combination line number/colon number in
compiler or text processor output.
However, even though konsole correctly adds the ':' suffix to the filename to
be opened - ie. it should in fact pass the suffix to the program responsible
for opening the file - it does not ignore the suffix when attempting to open
the file at all, leading to a "the file or folder does not exist" error as it
tries to open "filename:123" directly.
STEPS TO REPRODUCE
1. open konsole
2. in profile settings -> mouse -> miscellaneous, enable "underline links"
3. touch filename.txt
4. echo filename.txt
5. ctrl-click the filename.txt, observing that the file is opened
6. echo filename.txt:20
7. ctrl-click the filename.txt:20
OBSERVED RESULT
An error appears, indicating konsole is trying to open "filename.txt:20", a
nonexistent file.
EXPECTED RESULT
filename.txt should open at line 20. That is, "filename.txt:20" should be
passed to the app responsible for handling "filename.txt".
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 20.10
(available in About System)
KDE Plasma Version: 20.08.2
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list