SubliminalCollaborator icon indicating copy to clipboard operation
SubliminalCollaborator copied to clipboard

Shared edit events (undo, redo)

Open nlloyd opened this issue 13 years ago • 2 comments

Implement sharing of undo/redo events (proxy the commands in the menu and keyboard mappings).

nlloyd avatar Sep 26 '12 15:09 nlloyd

Proxy mechanism is implemented for now, but deferring on the rest of this due to the difficulty in mimicking Sublime Text 2's undo/redo behavior (I get WHY it is implemented that way in the editor but it makes for a challenging situation when making a proxy for that behavior).

nlloyd avatar Nov 18 '12 00:11 nlloyd

Personal notes on undo/redo in sublime:

  • undo --> event appears to be ignored... out of sync actually
    • host-side need to detect undo/redo commands in command history and handle accordingly... inserts are handled weirdly thus require special handling
      • count characters from last insert command: send the count and looping undos on client-side
    • also on client side need to detect if possible when the buffer was first populated and STOP at that point... possibly on end-of-view event mark that point in the history

nlloyd avatar Nov 19 '12 02:11 nlloyd