ulyssa / modalkit

A Rust library for building modal editing applications
Apache License 2.0
58 stars 8 forks source link

Vim keybindings can go to several modes after Command mode #108

Closed ulyssa closed 1 year ago

ulyssa commented 1 year ago

Currently the Vim keybindings always go to Normal mode when leaving Command mode, but there are times when it should go to Visual mode instead, if that is where it originally came from: for example, typing / in Visual mode allows entering a regular expression to move the cursor side of the current selection to. Entering Normal mode after typing the regex means that the selection is removed.