Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature request / Bug: ignore multiline template literal strings #178

Open
FredGandt opened this issue Mar 19, 2021 · 0 comments
Open

Feature request / Bug: ignore multiline template literal strings #178

FredGandt opened this issue Mar 19, 2021 · 0 comments

Comments

@FredGandt
Copy link

When working in JavaScript (for example); dragging through a template string's second, third etc. lines, a cursor should not be placed amongst them.

Example code layout:

        let foo = 3.142;
        let bar = `This template string
has
multiple lines';
        let baz = "And I'd like to drag a cursor in front of the two let declarations, " +
          "without affecting the template string";

While all three lets and the second part of baz's concatenated string should get a cursor, the second and third lines of the template string should not. Using vertical bars to represent where the cursors are placed:

Desired:

        |let foo = 3.142;
        |let bar = `This template string
has
multiple lines';
        |let baz = "And I'd like to drag a cursor in front of the two let declarations, " +
        |  "without affecting the template string";

Current undesirable result:

        |let foo = 3.142;
        |let bar = `This template string
has|
multiple| lines';
        |let baz = "And I'd like to drag a cursor in front of the two let declarations, " +
        |  "without affecting the template string";
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant