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

History tracker recording undo action as the last change.. #235

Open
nishabeysinghe opened this issue Jan 21, 2020 · 1 comment
Open

History tracker recording undo action as the last change.. #235

nishabeysinghe opened this issue Jan 21, 2020 · 1 comment

Comments

@nishabeysinghe
Copy link

When we perform the undo action, is there a way to use undo action twice in a row ?
In my experince when u perform the undo action, the next undo action becomes a redo because the history tracker records the undo action as the last action we did,, Is there any way to implement history tracker as a stack ?

@dblock
Copy link
Collaborator

dblock commented Jan 21, 2020

This should be possible with some work. You can undo multiple changes with x.undo! :last => 3 today, but not by calling undo 3 times. I can see something like x.undo! :history => false or x.fundo! ;) PRs welcome!

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

No branches or pull requests

2 participants