Giter Club home page Giter Club logo

Comments (3)

bbrks avatar bbrks commented on May 30, 2024

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

from shadershop.

1j01 avatar 1j01 commented on May 30, 2024

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. ␚

from shadershop.

1j01 avatar 1j01 commented on May 30, 2024

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.

from shadershop.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.