Improvement: Set an undo point every time the user stops typing for a set time #8140
Replies: 7 comments 4 replies
-
I'd prefer to manually commit via |
Beta Was this translation helpful? Give feedback.
-
It can be enabled/disabled in config files i guess, but this improvement issue is a follow up to a conversation in the matrix channel, about the fact that it is easier to click multiple times |
Beta Was this translation helpful? Give feedback.
-
If it is ok to implement(the improvement is welcomed under a config variable) i would like to tackle it(tho i will require some pointers for where i need to add/modify stuff) |
Beta Was this translation helpful? Give feedback.
-
Agree, having more undo points to work with is preferrable to having too few. Part of what's great, to me, about undo is I'm not thinking about it until it's time to undo. I don't want to build in 'set undo point' to my regular work flow (already, working with saving the buffer or even I can see the point of a user who wants to set undo points by stopping their normal workflow to create them, but I feel like this is exceptional, and could be addressed with a configuration option. |
Beta Was this translation helpful? Give feedback.
-
For me, I would like undo points to be set during any of the following events:
Reasoning:
Something like this sounds awesome, but I think it would be best in addition to the standard undo. Document history could probably store both with a flag to say whether it was automatic or manual, edit: seems like that idea exists, #1075 |
Beta Was this translation helpful? Give feedback.
-
@archseer has made has stance on this one clear (and I agree), C-s was implemented quite a while ago. I don't think we will change the behavior here (wit the exception of your third point but that was merged a while ago). Maybe in the more distant future you could write a plugin that calls c-s on these events. I don't see us supporting it in core |
Beta Was this translation helpful? Give feedback.
-
As a new helix user, the lack of a more granular undo by default is a blocker to me. I would be willing to help if I was pointed into the right direction: is there any work being done, a PR pending or an active discussion on this topic with some fleshed out proposals and decisions? The first thing I think I would want to do is commit after a debounced timeout without input, commit on certain events like cut/paste/complete/move and commit on a threshold of characters reached without a timeout. |
Beta Was this translation helpful? Give feedback.
-
Instead of only saving an undo point when switching between
insert
andnormal
modes, we can add an undo point if the user is in insert mode and didn't type anything for a per-determined amount of time.This improvement/feature will solve the "issue" of not switching back to
normal
enough then when you undo half your progress is deletedBeta Was this translation helpful? Give feedback.
All reactions