Bug 488027 - Copy full file path with line number
Summary: Copy full file path with line number
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-04 16:53 UTC by Nicolas Fella
Modified: 2024-06-19 19:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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