ulyssa / modalkit

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

Move some Action variants into EditorAction #66

Closed ulyssa closed 1 year ago

ulyssa commented 1 year ago

Several of the variants in Action are delegated to the Editable trait:

I'm going to move these and Complete into their own EditorAction type and make the Editable trait have one method that takes an EditorAction. This should simplify things for most implementers of Editable, since they usually just pass along a value to an EditBuffer.