Skip to content

Conversation

@jaycech3n
Copy link
Contributor

@jaycech3n jaycech3n commented Aug 27, 2016

Undo/redo functionality implementation for the web interface (refer #68).

The input cells are implemented using textarea elements which have native browser undo/redo; however the specific way this works differs quite dramatically among browsers (e.g. Chrome vs. Firefox), and switching between cells can cause the undo history to be forgotten.
A custom implementation is much better.

Tested on Firefox and Chrome; help testing on Safari appreciated.

Notes:

  • No ability to undo deletion of cells.
  • Undo limit can be set in mathics.js.

@sn6uv
Copy link
Member

sn6uv commented Aug 29, 2016

Just tested this out and it seems to work well. It would be nice if the undo could remove created cells (i.e. results) but I don't think that should block this. Some undo/redo buttons might also be a nice addition.

@jaycech3n
Copy link
Contributor Author

I've begun work on bringing the notebook interface up to date and have undo/redo buttons in the pipeline.

Cell handling is a little harder but potentially doable; I'll see what can be done.

@sn6uv sn6uv merged commit 543596d into mathics:master Sep 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants