Bug 192179

Summary: indented paste not implemented: ]p [p
Product: [Applications] kate Reporter: Nickolay Semyonov <nbkolchin>
Component: Vi Input ModeAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Unspecified   
Latest Commit: Version Fixed In: 4.11

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