ulyssa / modalkit

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

Support folding actions #123

Open ulyssa opened 8 months ago

ulyssa commented 8 months 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: