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

Allow users to go back indefinitely #17

Open
1 task done
Lioness100 opened this issue Feb 18, 2023 · 2 comments
Open
1 task done

Allow users to go back indefinitely #17

Lioness100 opened this issue Feb 18, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Lioness100
Copy link
Owner

Is there an existing issue or pull request for this?

  • I have searched the existing issues and pull requests

Feature description

Currently, the "Undo Previous Action" button can only allow the user to undo the most recent action because the previousState object is reset each time.

Desired solution

I wonder if there was a way to make a "history" array that stored the changes in every action, which the CLI would use to calculate what changed and how to revert it, allowing the user to go back indefinitely. I haven't thought too deeply into the technical implementation of this, nor is it very high priority, but I just wanted to jot it down in case someone wanted to pick it up.

Alternatives considered

No response

Additional context

No response

@Lioness100 Lioness100 added enhancement New feature or request good first issue Good for newcomers labels Feb 18, 2023
@guilherssousa
Copy link
Contributor

Got interested on this idea, maybe I'll write some drafts related to edit state history.

@Lioness100
Copy link
Owner Author

You're incredible 🤣💖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants