ulyssa / modalkit

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

Support expanding and trimming selections to full lines #61

Closed ulyssa closed 1 year ago

ulyssa commented 1 year ago

Kakoune supports trimming a selection to full lines with <A-x>, or expanding selections to full lines with <A-X>. I'm going to add a new SelectionAction::Expand, and update SelectionAction::Trim, sot that they both take an argument that allows expanding or trimming to line boundaries or the the end of runs of whitespace.