ulyssa / modalkit

A Rust library for building modal editing applications
Apache License 2.0
49 stars 5 forks source link

Support resizing selections #41

Closed ulyssa closed 1 year ago

ulyssa commented 1 year ago

In order to support pressing the Emacs keybinding C-SPC in #33, and the Kakoune keybinding ; in #32, I'm going to add a way to resize existing selections based on resolving an EditTarget at the current cursor position.

I'm also place it and the current Action::SelectionCursorSet and Action::SelectionSplitLines in their own SelectionAction to help reduce the size of match statements that handle Action.