Skip to content

Expand/shrink selection command selects one extra character under the cursor #12

@onvlt

Description

@onvlt

In Helix, there's an expand_selection (shrink_selection) command, which expands (shrinks) selection to parent syntax node. The equivalent command in VS Code editor.action.smartSelect.expand can be – if one changes some keybindings – made to behave quite like in Helix.

However, there's a glitch in VS Code that expand command with this extension installed expands selection to parent syntax node plus one extra character after the selection due to the fact that the cursor which is placed after the selection is one character wide and it is also part of the selection. This causes probems when you want to change/delete the selected portion of code

vscode-dance-helix-expand-selection-bug.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions