Old: Replaced whole text. e.g. Replacing word with (word)
New: Modify surrounding text only, intact inner text.
Benefit:
Better cursor placement and highlight
Since inner-text is NOT replaced, undo/redo cursor position become precise.
Also, flash highlight on undo/redo no longer highlight inner-text.
setCursorToStartOfChangeOnUndoRedo: now false
To say simply, this is just directly using atom's undo/redo marker for cursor placement.
To make this work well, careful marker snapshotting(transact, checkpoint) is crucial(#603).
I have been using vmp with this setting enabled for over 6 months.
And I really like it.
I can consider this change as part of default stayOnXXX = true.
The reason why I couldn't introduce this change is #617 was not fixed yet before.
Continuation of #728
replaceByDiffOnSurround
: nowtrue
word
with(word)
Benefit:
undo
/redo
no longer highlight inner-text.setCursorToStartOfChangeOnUndoRedo
: nowfalse
To say simply, this is just directly using atom's undo/redo marker for cursor placement. To make this work well, careful marker snapshotting(transact, checkpoint) is crucial(#603). I have been using vmp with this setting enabled for over 6 months. And I really like it. I can consider this change as part of default
stayOnXXX
=true
. The reason why I couldn't introduce this change is #617 was not fixed yet before.