ulyssa / modalkit

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

Allow Action to be parameterized with a consumer's type #9

Closed ulyssa closed 2 years ago

ulyssa commented 2 years ago

In order for the default Vim keybindings to be useful to a variety of applications, Action will need to be extensible with a users own actions. To support this, I'll add a new variant, Action::Application(T), and turn Action into Action<T> so that consumers can create their own action types.