Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

manage editor undo history #102

Merged

Conversation

tanhauhau
Copy link
Member

Fixes #3

  • keep track and preserve undo history across tabs

undo-buffer

@Conduitry
Copy link
Member

This is definitely a great start but it doesn't seem to be quite working. If I go into the 'examples' section of the site, for example, and click around between different examples, I can then repeatedly ctrl-z in one example's App.svelte to make it look like previous examples' App.svelte. This is certainly better than what we have now, but I'm hoping that we can also just clear the undo history for all tabs when the REPL consumer updates its contents.

@tanhauhau
Copy link
Member Author

handled that now. can give it a try.

@Conduitry
Copy link
Member

From the homepage, if I click directly to the REPL, loading the Hello World example, and then ctrl-z in the editor, the text disappears. Apparently it's starting empty and going from empty to Hello World is seen as an undoable action. Is it possible to clear the undo buffer in this situation as well?

@tanhauhau
Copy link
Member Author

wow.. good catch! fixed.

@Conduitry Conduitry merged commit a0e175d into sveltejs:master May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple tabs share undo buffer
2 participants