brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

[CLOSED] [cmv4][multicursor] Esc key with multiple cursors leaves single cursor in unexpected position #5509

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

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

  1. Use CMD+Click to set multiple cursors
  2. Press Esc

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.

core-ai-bot commented 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.

core-ai-bot commented 3 years ago

Comment by redmunds Thursday Feb 20, 2014 at 23:33 GMT


I updated title to reflect current issue

core-ai-bot commented 3 years ago

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.

core-ai-bot commented 3 years ago

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.

core-ai-bot commented 3 years ago

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.

core-ai-bot commented 3 years ago

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.