Bug 488027

Summary: Copy full file path with line number
Product: [Applications] kate Reporter: Nicolas Fella <nicolas.fella>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nicolas Fella 2024-06-04 16:53:26 UTC
Sometimes it is useful to copy the current file/line combination (e.g. /home/nico/src/foo.cpp:123 ) to the clipboard, e.g. for pasting into GDB.

I would like to see something like:
- Right-click on a line number on the side
- Click "Copy file/line location"

Or as an action in the menu bar
Comment 1 Christoph Cullmann 2024-06-15 14:25:49 UTC
True, good idea!
Comment 2 Christoph Cullmann 2024-06-19 19:05:13 UTC
Git commit e53fbf8ae92ba2f4ee137c30a0a1482f5aef08d0 by Christoph Cullmann.
Committed on 19/06/2024 at 19:05.
Pushed by cullmann into branch 'master'.

add action to popy the current file name and line

prefers

file over url notation

M  +2    -1    src/data/katepart5ui.rc
M  +11   -0    src/view/kateview.cpp
M  +5    -0    src/view/kateview.h
M  +6    -0    src/view/kateviewhelpers.cpp

https://invent.kde.org/frameworks/ktexteditor/-/commit/e53fbf8ae92ba2f4ee137c30a0a1482f5aef08d0