Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

arrow keys should break the multi-caret snippet #185

Open
matteoacrossi opened this issue Nov 21, 2015 · 1 comment
Open

arrow keys should break the multi-caret snippet #185

matteoacrossi opened this issue Nov 21, 2015 · 1 comment

Comments

@matteoacrossi
Copy link

Consider a snippet with multiple caret. For instance, the \begin{} ... \end{} snippet

  '\\\\begin{}…\\\\end{}':
    'prefix': 'begin'
    'body': '\\\\begin{${1:env}}\n\t$2\n\\\\end{${1:env}}'

in language-latex. When I'm editing the placeholder, everything is mirrored by the second caret.

But this is true also for the arrow keys: both carets move in every direction and this gives rise to inconsistent behavior (for instance, both cursors can move to a new line and add characters there).

The expected behavior would be that the placeholder editing ends when an arrow key is pressed. This happens, for instance, in TextMate with the very same snippet.

Using Atom version 1.2.3

@FlorianWendelborn
Copy link

FlorianWendelborn commented Mar 17, 2017

@teored90 The multi-cursor editing is a core feature of atom. Removing it for snippets would be very inconsistent and confusing. I bet that a lot of people rely on this behavior.

I suggest closing this in favor of using esc.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants