-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configuration file for setting keybindings #7
Comments
Noticed that a logfile may be handy. It seems to me that when ncurses clears terminal content in endwin(), this also gets rid of any prints. Could make another issue for this. |
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 BTW, it feels like @rexim follows suckless approach and simply injecting "config" source code into 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 as u8 as char {
include!("keys-config.rs")
} src/keys-config.rs 'k' => nav_up(),
// handling other input |
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: