ulyssa / modalkit

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

Support searching for previous prompt entries with PromptAction::Recall #56

Closed ulyssa closed 1 year ago

ulyssa commented 1 year ago

Vim allows you to search through previous commands and search expressions by typing a prefix and then pressing <Up>/<Down>. Support for this should be added to the components that handle PromptAction::Recall, and a flag to control it added the variant, so that <S-Up>/<PageUp>/etc. work correctly in the prompt.