Bug 192179 - indented paste not implemented: ]p [p
Summary: indented paste not implemented: ]p [p
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: Vi Input Mode (show other bugs)
Version: unspecified
Platform: Gentoo Packages Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-10 00:17 UTC by Nickolay Semyonov
Modified: 2013-07-10 13:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.11


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nickolay Semyonov 2009-05-10 00:17:29 UTC
Version:            (using KDE 4.2.2)
Installed from:    Gentoo Packages

Common VIM feature. Extremly useful for source code pasting.
Comment 1 Dominik Haumann 2009-05-10 02:24:06 UTC
There already is an option for this in the config page. If the vi mode implements this, it probably should read this config option.
Comment 2 Erlend Hamberg 2009-05-10 09:56:40 UTC
dominik: it looks like that option does something else. it *reindents* the pasted text. ]p should simply adjust the lines of the pasted text n indent widths to the left or right, so that the first character of the first line ends up at the current indent width.

Nickolay: thanks for the suggestion. i'll absolutely add that. :)
Comment 3 Simon St James 2013-07-10 09:30:46 UTC
Git commit ca6b39ab160fa2bbe2485097dd382bc82ef4d96f by Simon St James.
Committed on 10/07/2013 at 08:06.
Pushed by sstjames into branch 'master'.

Implement indented paste (]p and [p).

M  +28   -5    part/vimode/katevinormalmode.cpp
M  +4    -1    part/vimode/katevinormalmode.h
M  +25   -0    tests/vimode_test.cpp

http://commits.kde.org/kate/ca6b39ab160fa2bbe2485097dd382bc82ef4d96f