Live data from Hacker News

Resolving the great undo-redo quandary

github.com

1–10 of 247 posts

Re: Resolving the great undo-redo quandary

#6
I implemented something similar for a interactive whiteboard project once. The undo operation would simply be appended as another action that itself could be undone by re-doing it.

However, as you played with it, it became confusing because it ran counter to ingrained expected behavior of an undo/redo dual stack implementation. Eventually I implemented the classic approach.

Re: Resolving the great undo-redo quandary

#9

This is exactly how undo works in Emacs out of the box. Personally, I prefer to install the undo-tree package and manually browse through the tree of undo paths. I'm not sure why this author finds a tree unacceptable for this purpose.

Because it requires more than two commands
Post reply on HN