ulyssa / modalkit

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

Support folding actions #123

Open ulyssa opened 1 year ago

ulyssa commented 1 year ago

Vim has a concept of folding, which squashes multiple real lines into one visual line on the screen, which is primarily used for expanding and collapsing blocks of code. I'd like to reuse these keybindings in iamb (see ulyssa/iamb#93), so I'm going to add a FoldAction that the following keys can map to:

There are also the following movement keys, which will need a new variant in MoveType: