You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought that support for reading .toml files would be builtin somehow. It is not. toml crate has a dependency to serde_derive::Deserialize, so not liking this approach as much anymore. Will implement anyways, and see how it looks when done.
@arbiter0xf IMHO, this needs refactoring. All actions inside getch handling should have it's own names in order to refer to them. Looks like some sort of an API required.
BTW, it feels like @rexim follows suckless approach and simply injecting "config" source code into match body seams fine enough (via std::include!)
srs/main.rs
let nav_up = || match panel {Status::Todo => list_up(&mut todo_curr),Status::Done => list_up(&mut done_curr),};// other API lambda functions// ...let key = getch();match key asu8aschar{include!("keys-config.rs")}
Read keybindings from a .toml file.
Motivation was to just provide vimlike keybinds, but using a configuration file does serve a broader range of users.
Issue currently in progress, so please assign ticket to me if appropriate.
The text was updated successfully, but these errors were encountered: