Skip to content

Shift selection #485

Open
Open
@asmeurer

Description

@asmeurer

In emacs mode at least (don't know about vi), shift + arrow should do a selection.

This is slightly different from control-space selection, because pressing an arrow without shift should cancel the selection (this is also how most modern GUIs work).

I'm not a vi user, so I don't fully understand what the different selection states mean. Does it make sense to make a new selection type, like SelectionType.SHIFTSELECT, which acts like SelectionType.CHARACTERS except it gets canceled on arrow.

For now, I have implemented this by appending an attribute to the SelectionState object and checking for it on arrow.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions