You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom sequence keymaps (defined in user's config.toml) will execute the commands in sequence but also record each modification to the history. Undoing will undo the individual components of the sequence keymap, not the keymap as a whole.
An example: A-s = [ "extend_to_line_bounds", "delete_selection", "paste_after" ]
This keymap will swap a line with the one below. But it requires 2 undos for paste_after and delete_selection
Possible solution:
Add commands to start / stop recording individual modifications to history. When recording is stopped, modifications will update the last history Revision instead of adding new ones.
If this feature request is found interesting, I would happily have a go at implementing it 😃
The text was updated successfully, but these errors were encountered:
So, this turns out to be a bit tricky due to the fact that Documents keep their own individual histories, and command sequences are capable of switching the current document.
Custom sequence keymaps (defined in user's
config.toml
) will execute the commands in sequence but also record each modification to the history. Undoing will undo the individual components of the sequence keymap, not the keymap as a whole.An example:
A-s = [ "extend_to_line_bounds", "delete_selection", "paste_after" ]
This keymap will swap a line with the one below. But it requires 2 undos for
paste_after
anddelete_selection
Possible solution:
Add commands to start / stop recording individual modifications to history. When recording is stopped, modifications will update the last history
Revision
instead of adding new ones.If this feature request is found interesting, I would happily have a go at implementing it 😃
The text was updated successfully, but these errors were encountered: