Open core-ai-bot opened 3 years ago
Comment by ShimShamSam Sunday Feb 09, 2014 at 17:01 GMT
I agree that escape should disable multiple cursors, but I feel like it should revert back to the first selection. A common use case for me (in Sublime Text) is to use the multiple cursor functionality to quickly check the locations of all other instances of a variable/method, sort of like a quick "find". Once I see the locations, I hit escape to go back to the original selection.
Comment by redmunds Thursday Feb 20, 2014 at 23:36 GMT
@
Knotix That's not how Sublime Text 2 works. If I create multiple cursors A, B, and C in a document, it does not matter what order I add them -- Esc sets the single cursor to be the whichever cursor is first in the document.
Comment by peterflynn Thursday Feb 20, 2014 at 23:56 GMT
@
redmunds But ACE collapses to the last (most recent) selection, so it seems there's no clear-cut common behavior.
Comment by redmunds Friday Feb 21, 2014 at 00:24 GMT
@
peterflynn I never said that I preferred ST behavior (actually, it's my least favorite), I was just responding to a previous comment.
Comment by njx Saturday Feb 22, 2014 at 02:54 GMT
I'm going to close this for now as "as designed" since this is the way CodeMirror works. If we get more input from users who prefer the behavior@
Knotix mentioned, we can ask Marijn to make it an option - that should be pretty easy to do.
Issue by jasonsanjose Monday Nov 18, 2013 at 18:02 GMT Originally opened as https://github.com/adobe/brackets/issues/6033
Original Subject: Esc key does not disable multiple cursors
Actual: Multiple cursors still active Expected: Multiple cursors should revert to most recent cursor selection. e.g. Selection positions A, B, C followed by Esc should set the new primary cursor to C. See demo http://codemirror.net/4/demo/multiselect.html.