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

Implement Undo #30

Closed
ndd7xv opened this issue Sep 11, 2022 · 0 comments · Fixed by #33
Closed

Implement Undo #30

ndd7xv opened this issue Sep 11, 2022 · 0 comments · Fixed by #33

Comments

@ndd7xv
Copy link
Owner

ndd7xv commented Sep 11, 2022

Background

heh currently has no way to undo a deleted or back-spaced byte. It would also be convenient for users to "un-type" things are go back to a position the cursor was previously located at.

Task

I'm thinking to implement something basic, we could have a Vector of Actions, which would be an enumeration of the different actions a user will be able to undo. Hitting ctrl+z would pop actions from the vector and undo that command, while doing an action would push it to the vector.

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

Successfully merging a pull request may close this issue.

1 participant