Bug 310676

Summary: undo within given section
Product: [Applications] kate Reporter: Ansa <ansa.ansa>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: 3.8.90   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ansa 2012-11-25 20:54:44 UTC
It often happens to me that I do some change in one place of the document, then edit some other part of the document, and finally realize that I want to undo the first change. For example, I am using Kate for programming a lot; I edit one function, then edit the main body of the program, and then realize that I want to go back to the original version of the function without undoing the changes in the main body. What I would like to do at that moment is this:
1) select the part of the program that contains the function, including several lines of unchanged text before and after the changed spot,
2) hit the undo button, which would undo the last change in the selected part (moving this particular change to the "redo" stack, and leaving the rest of the undo history - especially the parts relevant to other areas of the document - intact)

Reproducible: Didn't try
Comment 1 Dominik Haumann 2012-11-26 07:38:04 UTC
Known wish, although it is not easy to implement this given our undo/redo stack. See bug #79496 for further info...

Besides that: If you want to undo selected parts, you can do that with git based on the revisions in git as well (or graphically with git-cola).

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