stephensli / Toggler

Toggle words and symbols in VSCode using a user defined configuration.

Home Page:https://marketplace.visualstudio.com/items?itemName=tehstun.toggler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cursor position leads to unexpected or impossible toggles

HiDeoo opened this issue · comments

Without selection, if we take the test => test.only toggle, the cursor position leads to totally unexpected result.

toggler2

The ^ indicates the cursor position.

test will transform into test.only.
        ^

test.only will transform into test.only.only.
 ^

test.only will not even trigger a toggle.
                  ^

test.only will not even trigger a toggle.
          ^

test.only will transform into test.only.only.
        ^

Vscode Api selects closest word and ignores non alpha characters

I will see what I can do.

Moved back to previous selection only version for when I have a better time to look into the changes, hopefully over the next two months, until then i'm closing the issues.