[konsole] [Bug 431895] New: Direct click on file in grep result doesn't open file

Piotr Mierzwinski bugzilla_noreply at kde.org
Thu Jan 21 20:47:23 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=431895

            Bug ID: 431895
           Summary: Direct click on file in grep result doesn't open file
           Product: konsole
           Version: 20.12.1
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: konsole-devel at kde.org
          Reporter: piotr.mierzwinski at gmail.com
  Target Milestone: ---

SUMMARY
For profile "bash", which starts shell Bash, I checked option "Open by direct
click" to get possibility of jump directly to line of code in the file I found
by grep command. 
All setting in Mouse tab please find in attached screenshot.

I opened new tab with profile "bash". and started grep command to find proper
string. One of result was:
work.txt:820:           ASSERT: "index.isValid()" in file
I pressed Ctrl and clicked left mouse button on it. In result I got error that
file doesn't exists, where in path was line number (this was reason that file
cannot be found)

"Unable to run the command specified. The file or folder
/path/to/my/file/work.txt:820: does not exist."

STEPS TO REPRODUCE
1. Define and open bash profile running shell Bash
2. In configuration for bash profile check following options:
Path: "Settings -> Edit current profile -> Mouse -> Miscellaneous":
"Underline files", "Open by direct click"
3. run for example "grep -n qt *" in directory where is present file which you
want to search
4. in result you should get long list (10 positions) of matching lines in
searched file, where file name doesn't start with path. My result was
following:
"work.txt:820:     something qt what matches to search"
5. hold Ctrl (or other configured key short) and click on any file

OBSERVED RESULT
Cannot open file, because error "The file /path/work.txt:820 does not exist.".
Looking at error message it seems that file name is not recognized correctly.

EXPECTED RESULT
Open file and jump to given line.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: YES
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
$ grep --version
grep (GNU grep) 3.6

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list