albertromkes/tabout

Provide Option to Prevent Tabbing Out With Text Selection

Opened this issue · 1 comments

adsuth commented

When text is selected, if the cursor is on a eligible tabout character, the selection will be undone when pressing tab, and the cursor will move.
This is probably likely an oversight given that tabbing with a selection should instead change the selections indent level.

For example, in this image, I have selected text. My cursor is next to a quote. Pressing tab should not trigger tabout, but should instead perform the default behaviour of indenting the selection block.

image

I’m pretty sure it is fixed in new version thanks to the when expression for the keybinding excluding selection : editorTextFocus && !editorHasMultipleSelections && !inSnippetMode && !inlineSuggestionVisible && !suggestWidgetVisible