Skip to content

Jump/select inside and outside brackets #643

@d0vgan

Description

@d0vgan

At first, thank you very much for the BracketsHighlighter and for continuing to improve it!
I have the following feature request:

  • When the caret is outside brackets/quotes, BracketsHighlighter should jump/select outside the brackets/quotes.

Here are a few examples of the desired behavior:

  1. |(abc) becomes (abc)| when jumping (I use the | character to represent the position of the caret);
  2. |(abc) becomes [(abc)] when selecting (I use the [] characters to represent the selection);
  3. { x [(abc)] y } becomes {[ x (abc) y ]} when selecting (again, I use [] to represent the selection).

As can be seen, my request is to preserve the outer position of the caret instead of jumping inside the current brackets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: triageIssue needs triage.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions