ulyssa / modalkit

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

Support scrolling cursor position out of the viewport #54

Open ulyssa opened 2 years ago

ulyssa commented 2 years ago

When I initially added support for a bunch of Vim's scrolling methods, I skipped over z+ and z^, which scroll the window so that the line the cursor is on is placed just outside of the viewport. There should be a new variant added, ScrollStyle::CursorOut, which takes a MoveTerminus and Axis, to support these keybindings.