share / share/sharedb

Local undo/redo/history in client

Open
#210 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6.5k
Forks
456
Avg merge
1d 5h
Merged PRs (30d)
5

Description

I got the sharedb client working with a codemirror instance, but I don’t see any tools or methods on the sharedb client to store and revert/reapply local changes. Current behavior in my app makes it so that pressing ctrl-z will undo ops sent from the server. Checking to see if anyone has implemented local undo or if I have to roll it myself? :)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the ShareDB client API and the CodeMirror integration described in the issue. Determine how local history should distinguish locally generated edits from operations received from the server, and define completion as undo and redo affecting local changes without undoing server operations.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.