Bug 434201

Summary: undo history branching
Product: [Applications] krita Reporter: til.schmitter
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: halla
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description til.schmitter 2021-03-09 18:19:37 UTC
Problem:
after you undo a stroke and draw again, you can't go back to the stroke you just undid. if you're absent-minded, that can be annoying sometimes...

Idea:
when you undo, the undo history doesn't go back, but adds a new step instead, this would only be accesible via the undo history docker, normal undo/redo wouldn't change. this could be toggle-able in the undo history docker.

this would require 2 seperate undo histories (one normal one, and another storage for these "branches"), otherwise a second undo would just redo again.
Comment 1 Halla Rempt 2021-03-09 18:22:21 UTC
Does the snapshot docker provide enough of that functionality for you?
Comment 2 til.schmitter 2021-03-09 22:44:12 UTC
The snapshot docker requires a conscious motion for each save, so that wouldn't help in the case i was thinking about. usually i draw a stroke and undo pretty quickly after i drew it, repeating that many times, usually to get a nice clean stroke for line art. if I'd try to use the snapshot docker here, I'd need to make a new snapshot after each stroke/input manually. if that would happen automatically and the old snaps above the undo limit get cleared too, that would be pretty much what i tried to describe.
Comment 3 Bug Janitor Service 2021-03-10 04:33:45 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 4 til.schmitter 2021-04-29 10:20:02 UTC
In case anyone tries to implement this, I have a better possible solution: 
- make double keyboard shortcuts possible so you can undo and create a snapshot at the same time
- make snapshots keep their undo history