jednano / vscode-tabsanity

Arrow-key navigation through soft tabs as if they were hard tabs.
MIT License
12 stars 2 forks source link

Expand selection with shift+home & shift+end redux #8

Open AdamAndersonFalafelSoftware opened 8 years ago

AdamAndersonFalafelSoftware commented 8 years ago

I currently have a state that persists past a restart of VSCode and does the following:

Conversely, these scenarios behave as expected:

In summary, holding Shift and expanding selection to a different line, then trying to shrink selection to the home or end of the new line with Home or End keys causes the cursor to jump to Home or End of the starting line. Further expanding selection with Home or End stays on the new line as expected.

tabsanity

jednano commented 8 years ago

Thanks for reporting this! I can't say when I'll have time to fix this, but I'm willing to accept a PR.

fendy3002 commented 7 years ago

Hi, I found that it is enough to only remove shift+home and shift+end keybinding from sanity, default back to vscode's keybinding.

As for the workaround, one can add the following setting to keybinding.json:

 {
        "key": "shift+end",
        "command": "-tabsanity.cursorEndSelect",
        "when": "editorTextFocus"
    },
    {
        "key": "shift+home",
        "command": "-tabsanity.cursorHomeSelect",
        "when": "editorTextFocus"
    }
krisutofu commented 2 years ago

This bug still is not fixed and much confused me. I installed multiple new VSCode extensions and I found, it's this extension after disabling multiple extensions.