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
ctrl-z clears cell output in notebook when pressed enough times #1678
Comments
I should, of course, mention, that |
Well, I'm not sure I'd consider this a bug: it's undoing all of your history from the first thing you typed... And I do want to be able to go past the last save point, in case I saved a mistake! I sometimes hit So IMO this is 'not a bug'. Close it? |
i agree that my suggestion about only being able to undo until the last save point isn't the best, so that's probably not the way to go. I just feel that it's counterintuitive that when I open a notebook (say one of the example ones that we ship) and press |
I'd agree with Paul that if you load a notebook with content, you don't expect Ctrl-Z to delete what's already there. I often play around with a script in an editor, then do a poor man's revert by holding down Ctrl-Z until it's back to what I first opened. |
ah, I didn't realize this was happening on a freshly opened notebook! I thought it only did undo if you had written the cell from zero yourself, case in which 'go back all the way to the start' would indeed be 'go back to an empty cell'. I certainly agree that |
I found another bug where switching the cell type causes the loss of all undo history for that cell. With this commit, switching the cell type simply resets the history
the fix @ak3n does not work quite right for new cells. For those, it only allows you to undo up to the first set of changes in that cell. |
I found another bug where switching the cell type causes the loss of all undo history for that cell. With this commit, switching the cell type simply resets the history
fix for ipython#1678, undo no longer clears cells With these changes, Ctrl-Z inside of codemirror cells will only undo up to the text that was in the cell when it was loaded from JSON. closes ipython#1678
again, this may be another CodeMirror issue, but I'm not seeing it in CM demos.
Ctrl-Z
works fine to undo changes made in a cell, unless you press it one too many times, which currently ends you up with a completely empty cell. I don't think this is a feature, I think it only makes sense to undo until the last save point.I'm seeing it act the same in Chrome and Firefox under Ubuntu 10.04
The text was updated successfully, but these errors were encountered: