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

Undo/Redo #52

Closed
lucthev opened this issue Sep 18, 2014 · 0 comments
Closed

Undo/Redo #52

lucthev opened this issue Sep 18, 2014 · 0 comments

Comments

@lucthev
Copy link
Owner

lucthev commented Sep 18, 2014

Technically, this should actually be relatively straightforward: listen to the various delta events (/(paragraph|section)(Insert|Update|Delete)/), figure out the opposite of that delta, and pop both, along with a copy of the selection at the time, onto a stack of some kind. Undo/redo is then simply a matter of applying the right deltas.

Trickier, however, is determining when to save the current state. MS Word is nonsensical in when it decides to save state; Sublime Text and Medium seems to base it on word boundaries, which is a much better experience.

@lucthev lucthev added this to the v1 milestone Sep 18, 2014
@lucthev lucthev modified the milestones: v1, Feature completeness Jan 25, 2015
@lucthev lucthev modified the milestone: Feature completeness Feb 10, 2015
@lucthev lucthev closed this as completed Feb 22, 2015
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

No branches or pull requests

1 participant