Skip to content

Align with multiple cursors not working under Atom 1.19 #82

Description

@kylebarron

I updated to Atom 1.19 and the multi-cursor alignment no longer works.

From the example in the README (the vertical lines are removed and where my cursors are placed):

var a    =b var c|= d
var e c|=   f var g = h
var i c=j var k |= l

should be transformed to

var a    =b var c = d
var e c           = f var g = h
var i c=j var k   = l

Instead, it's transformed (using atom-alignment:align) to:

var a  =b var c= d|
var e c= f var g = h|
var i c=j var k = l|

where the cursors are shown at the end of the line. It seems that it doesn't perceive multiple cursors and aligns on the first = instead. The following text (with cursors designated with |) is not adjusted at all under atom-alignment:align:

test |d
aldssadflkjsakdlf |d

My config.cson looks like this:

  "atom-alignment":
    addSpacePostfix: true
    alignBy: [
      "<-"
      "=>"
      ":="
      ":"
      "="
      "\""
      "\\"
      "`"
      ">="
      "<="
      "~"
    ]
    alignmentSpaceChars: [
      "=>"
      ":="
      ":"
    ]

My atom version is:

> atom --version
Atom    : 1.19.0
Electron: 1.6.9
Chrome  : 56.0.2924.87
Node    : 7.4.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions