Replies: 2 comments 2 replies
-
Typically in the modal editing paradigm, this would involve:
This way, pressing undo once would undo your changes from the second function, and pressing again would undo the changes from the first. Navigation also typically takes place with hjkl, so your fingers don't leave the home row. So often times the undo history is even more granular than all the changes you've made to each function as a whole. Your undo history can be as granular as you want it to be. Helix is a modal editor. It seems like you are trying to make it work as a non-modal editor, and it's not working out for you. If this paradigm is too cumbersome for you, then perhaps you would be happier with a different editor. |
Beta Was this translation helpful? Give feedback.
-
Similar functionality in emacs: https://www.emacswiki.org/emacs/SelectiveUndo |
Beta Was this translation helpful? Give feedback.
-
Let's say I have two separate chunks of text, but within one file (e.g., two paragraphs or two functions)
I make 5 changes to the first one
Then I make 3 changes to the second one
Now my undo history stack is 5 changes from the first and 3 changes from the second and to get to the changes in the first chunk/function I'd need to undo also the 3 changes from the second
Wouldn't it be great if I were able instead to select the first function and then execute an undo command, but then only use the first 5 changes that are relevant to this selected chunk of text?
It's similar to how you can currently undo changes in one file without affecting the later changes in a different file, but for local chunks of text within one file
Or maybe not and that's something that should be left to the likes of git where you can view and undo changes by line/hunk
Beta Was this translation helpful? Give feedback.
All reactions