1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! This crate help you build tui with keybings config in an easy way.
//! When building a tui application, we need address following topics.
//! - `Define a set of keybing for some events`
//! - `Capture one/some key bindings and perform one the event`
//! - `Display a prompt of a key bindings`
//! - `Provide a config file and let user to change all or part of it`
//!
//! These topics can be abstract these into [`KeyBindTrait`], and the key binding serialize and deserialize
//! to a config file are solved in this crate.
//!
//! There still are a lot of trivial works, ahead you and your great ideal to build tui application.
//! This crate also provides derive macro [KeyBind](https://docs.rs/crossterm-keybind-derive/latest/crossterm_keybind_derive/derive.KeyBind.html)
//! to generate the the keyconfig in a supper easy way, you can have a toml key config for your
//! events and allow user to patch part of it.
pub use event;
pub use event;
pub use KeyBind;
pub use Error;
pub use struct_patch;
pub use toml;
pub use toml_example;
pub use log;
pub use serde;
pub use KeyBindTrait;
pub use ;