-
-
Notifications
You must be signed in to change notification settings - Fork 335
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
Regression about undo/redo #1421
Comments
Hello @RaiKoHoff , |
Feel free to test beta version _5.19.715.2393_BETA (beta channel access see: #1129). |
LGTM. Thanks for the fix. |
seems like now it has the opposite problem, where everything is considered as a single undo transaction? EDIT: this only seems to be the case when authoring new content:
i would expect there to be some timeout between closing the undo transaction. 1 sec seems reasonable to me. |
I fail to see what's wrong here:
|
that's kinda the crux of this for me. if there is sufficient time between user activity, then each is a separate transaction in my view. this seems to only affect exclusively appending new data by keyboard entry. SublimeText and LibreOffice Writer works more like i described. VScode seems to rely on some combination of a timeout and whitespace (or complete non-whitespace tokens). Notepad++ works like Notepad3 (probably since both scintilla). so while not a bug, per se, it would be quite useful if there was a minimal amount of smarts around doing partial undos of long-lived append-only transactions. |
If the caret is moved elsewhere after inserting some text, but moved back before inserting more (so the insert position doesn't change despite the move), the two insert operations are still considered a single unit. Probably this is undesired, but I am fine with either. |
I vote against an undo split based on some timeout settings, and do not change Scintilla's undo/redo default in this case. |
I second your vote... 😃 |
the nays have it! |
@leeoniya : to track this discussion, just create a new issue (change request) for this. |
i don't feel strongly enough about it, so if you guys don't see enough reason to add it, then that's fine. |
@leeoniya: see #1548 (comment) |
thanks, will test later today! |
from prelimnary testing, 5.19.828.2604 BETA behaves as i'd expect. 👍 |
We still have this bug (Point 1 of #1548 (comment)), so I suggest to keep this issue open until we have a solution for it. |
New development beta version (_5.19.828.2605_BETA) available. |
Also see #1599 |
Thank you for testing and issue reporting 😄 - Feel free to test dev beta ver _5.19.904.2617_BETA. |
Hello @lhmouse , |
oh ok. |
Version
d14e227
Steps to Reproduce
abcdefghijlkmn
.Behavior Got
Undo/redo is now character-wise. Additionally, in order to undo/redo each character other than the last one, the combination key has to be pressed twice.
Behavior Expected
The sequential keystrokes should be considered as an integral operation. A single Ctrl-Z should suffice to undo it. So is Ctrl-Y.
The text was updated successfully, but these errors were encountered: