-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
last cursor position not preserved when clearMultipleCursorsOnEscapeInsertMode is true #899
Comments
If you can reproduce it, give me complete set of
|
this is with sample text:
put cursor on top row
final text:
cursor will be on last c of last row |
Cursor should be at 2nd(=last row) c, this is designed behavior. So IMO, you have wrong expectation what last cursor is. |
hmm interesting that the autocomplete-plus shows up on the 2nd cursor but i would still expect the cursor to go back to where you originally started the multiple cursors with cmd+d, and i have two cases for why: if you turn off vim-mode-plus, and repeat the same thing with
the cursor will be on the first row. this is also the behavior that i am used to on sublime text's vim mode + multiple cursors and vscode's vscodevim + multiple cursors |
For specific scenario you explained above, I understand your request. But that behavior is based on behavior Atom-core not respect last-cursor position when merging multiple-cursor(or selections). I can add this as opt-in-by-config feature(not so motivated though for me). |
My expectations align with @kentor. With In terms of tests found in describe "clearMultipleCursorsOnEscapeInsertMode setting", ->
beforeEach ->
set
text: 'abc'
cursor: [[0, 1], [0, 2]]
describe "when enabled, clear multiple cursors on escaping insert-mode", ->
beforeEach ->
settings.set('clearMultipleCursorsOnEscapeInsertMode', true)
it "clear multiple cursors by respecting first added cursor's position", ->
ensure 'escape', mode: 'normal', numCursors: 1, cursor: [0, 0]
it "clear multiple cursors by respecting first added cursor's position", ->
set cursor: [[0, 2], [0, 1]]
ensure 'escape', mode: 'normal', numCursors: 1, cursor: [0, 1]
|
By the way, I should add this (reversed) behaviour aligns with default Atom when adding cursors with |
Check list
atom --version
)Saw this #562 but seems to not work. Check out the gif:
The text was updated successfully, but these errors were encountered: