atom-alignment icon indicating copy to clipboard operation
atom-alignment copied to clipboard

Multiple cursor history

Open ghost opened this issue 9 years ago • 0 comments

After aligning cursors, there is one history event added per cursor, which is quite annoying. I originally submitted this to atom directly and was told "[atom-alignment] needs to use the TextEditor::transact method to group these changes."

{
  "a"|: 1,
  "ab"|: 1,
  "abc"|: 1

align cursors

{
  "a"  |: 1,
  "ab" |: 1,
  "abc"|: 1

undo (note nothing happens, it's resetting the 3rd cursor which didn't move):

{
  "a"  |: 1,
  "ab" |: 1,
  "abc"|: 1

undo:

{
  "a"  |: 1,
  "ab"|: 1,
  "abc"|: 1

undo:

{
  "a"|: 1,
  "ab"|: 1,
  "abc"|: 1

ghost avatar Jul 26 '15 09:07 ghost