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

Dashboard: history stack for undo/redo #1061

Open
chetbae opened this issue Jul 21, 2023 · 0 comments
Open

Dashboard: history stack for undo/redo #1061

chetbae opened this issue Jul 21, 2023 · 0 comments

Comments

@chetbae
Copy link
Contributor

chetbae commented Jul 21, 2023

For undoing and redoing actions:

One possible solution is to create an IFolder stack of size ~20 (for 20 actions). For each action, eg Move, Rename, etc., push the root onto the stack. On undo, assign the last state to the root which will save to local storage, update dashboard, etc. Similar for redo, and add event listener for keybindings.

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

1 participant