Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo/Redo #14

Open
1j01 opened this issue Mar 6, 2018 · 3 comments
Open

Undo/Redo #14

1j01 opened this issue Mar 6, 2018 · 3 comments

Comments

@1j01
Copy link

1j01 commented Mar 6, 2018

Ctrl+Z for undo, and Ctrl+Shift+Z and Ctrl+Y for redo

(Preferably nonlinear...)

@bbrks
Copy link
Contributor

bbrks commented Mar 6, 2018

What do you mean by nonlinear? And why 2 hotkeys for redo?

@1j01
Copy link
Author

1j01 commented Mar 7, 2018

Ctrl+Y is the classic Windows shortcut for redo (although less classic then F4), and Ctrl+Shift+Z is much better imo because it's physically related to Ctrl+Z, and easier to press with one hand.

Applications with linear history generally destroy it without telling you, if you undo and then do anything other than redo. That's the standard (history isn't considered important).
Nonlinear history means if you undo and then do something, you can still get back to where you were, because it's not two stacks of operations or states, it's a tree.
I guess the only software I know of that has it are emacs and vim (with the feature known as undo trees, or undo branches), but I've never used either program except for trying to exit them, and occasionally trying to edit text files, forgetting that nano exists. (I wish using GUI text editors over SSH was easier.)

Personally I have a lot of ideas about how undo/redo should work, for all creative/editing software. I think history should be stored along with the document, and made visible (like with history panels in some apps), and made more powerful and editable, like being able delete an operation in the middle of history and have the further actions play out on top, or to reorder operations, etc.

But anyways, just plain undo/redo would be nice.

Googling for some history on Ctrl+Shift+Z vs Ctrl+Y I found this. Man, I remember that happening, that probably lost me some work way back when. It illustrates the culmination of these two points. ␚

@1j01
Copy link
Author

1j01 commented May 14, 2020

I have since my last comment implemented non-destructive (nonlinear) undo history in my image editor JS Paint. You can get back to any state with Edit > History. And if you try to redo at the end of a branch in the history tree, it'll prompt you to open the history window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants