atom-alignment
atom-alignment copied to clipboard
Multiple cursor history
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