Bug 82430 - Line mode select/copy/paste in Kate
Summary: Line mode select/copy/paste in Kate
Status: RESOLVED FIXED
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-29 11:28 UTC by David Ferenczi
Modified: 2016-06-15 21:32 UTC (History)
0 users

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


Attachments
Script using dcop and Klipper to copy active line in Kate irrespective of cursor position. (1.27 KB, application/octet-stream)
2006-07-30 04:11 UTC, John
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Ferenczi 2004-05-29 11:28:33 UTC
Version:           2.2.1 (using KDE KDE 3.2.2)
Installed from:    Gentoo Packages
Compiler:          gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) 
OS:                Linux

I really miss the line mode select/ccopy/paste feature from Kate, which is extremely useful in code editing, since normally entire lines are copied/moved/deleted/tabulated instead of line fragments. Doing this without touching the mouse is a must for effective work.

The change between "line mode" and "normal mode" could be solved easilly with a mode switch.

select:
In line mode entire lines are selected instead of line fragments, independently form the cursor column postiton.
For example the shift+downarrow key combination would select from the home position of the current line instead of the current column position.

paste:
In line mode the paste inserts right above the current line, independently from the cursor column position.

cut/copy:
If there's no selection the current line will be cut/copied to the clipboard.

I would contribute writing this feature, if this request is accepted.

See also #73314 (kedit)
Comment 1 Jan Villat 2004-05-29 12:04:40 UTC
Yeah I would like that feature, too. Would be really useful when coding.
Comment 2 Anders Lund 2004-05-29 12:20:05 UTC
Very nice idea, That would be wellcome as far as I am concerned :)
Comment 3 John 2006-07-30 04:11:18 UTC
Created attachment 17162 [details]
Script using dcop and Klipper to copy active line in Kate irrespective of cursor position.
Comment 4 John 2006-07-30 04:13:46 UTC
Comment on attachment 17162 [details]
Script using dcop and Klipper to copy active line in Kate irrespective of cursor position.

I asked the same question on the Gentoo boards recently and a user by the name
of Tin came up with a partial solution to the copy paste portion of this
request. It would be great if this type of functionality was integrated into
Kate and did not require dcop or Klipper to achieve.
Comment 5 Dominik Haumann 2016-06-15 21:32:01 UTC
Meanwhile, there are line-mode copy&paste functions:
- ctrl+alt+up copies the current line (or all selected lines) upwards
- ctrl+alt+down copies the current line (or all selected lines) downwards
- ctrl+shift+up moves the current line (or all selected lines) upwards
- ctrl+shift+down moves the current line (or all selected lines) downwards