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

Add support for automerge-like undo/redo #12

Open
bobby opened this issue Sep 30, 2020 · 0 comments
Open

Add support for automerge-like undo/redo #12

bobby opened this issue Sep 30, 2020 · 0 comments

Comments

@bobby
Copy link
Contributor

bobby commented Sep 30, 2020

Ideas:

  • Annotate each op with patch-id, which is the first lamport timestamp of a given "transaction"/swap!/reset! patch
  • Annotate each op with an undoable? boolean, indicating whether it can be undone
  • Undos can be done only by the same actor as in the patch-id, and only if undoable? is true
  • TODO: figure out mechanics of undo/redo:
    • impact on opset (e.g. appending single-op, non-undoable patches indicating undo/redo of a particular patch?)
    • impact on interpretation (e.g. add an initial pass over opset to build list of no-apply patches to use during interpretation?)
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