Bug 103021

Summary: Kate idea: Undo within selection
Product: [Applications] kate Reporter: Adrian Holovaty <kde>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Adrian Holovaty 2005-04-01 19:08:29 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    RedHat RPMs

Here's something that would make Kate more useful: An "undo within selection" feature.

Basically, it'd allow a user to select text, hit "Undo within selection," and the undo would only affect the selected part of the text.

I'd use this feature a lot while editing code. Lots of times, I'll make a change to something toward the top of the document, then make a change to something at the bottom of the document, but then I'll want to undo the first change without undoing the second change. Currently, in this situation, I'll copy-and-paste the second change into a new document, then hit "Undo" several times in the original document until the original changes are undone, then copy-and-paste the second change from the new document back into the first document. That's quite laborious and error-prone. It would seem easiest, usability-wise, to be able to select the code at the top of my document and hit "Undo within selection."

I suspect this would be a popular feature -- and I can't think of any other text editor that has it. It'd be another way for Kate to prove it's the best editor around. :-)
Comment 1 Andreas Ramm 2005-04-09 08:11:34 UTC
Extending this idea, I think a list with possible undo actions would be even better. That way the user doesn't even have to select a region but can just undo whatever they didn't like. As an option the list could only contain entries for the selected text. Either way I think it's a great idea.
Comment 2 Andreas Kling 2006-07-25 22:15:55 UTC

*** This bug has been marked as a duplicate of 79496 ***