Rename wrap setting to word_wrap

This commit is contained in:
Jeremy Soller 2023-11-01 09:44:11 -06:00
parent 27523ef3ea
commit 621e9d75eb
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
4 changed files with 12 additions and 10 deletions

View file

@ -39,7 +39,7 @@ impl KeyBind {
bind!(CTRL, O, OpenFileDialog);
bind!(CTRL, S, Save);
bind!(CTRL, Q, Quit);
bind!(ALT, Z, ToggleWrap);
bind!(ALT, Z, ToggleWordWrap);
keybinds
}
@ -65,7 +65,7 @@ impl fmt::Display for KeyBind {
#[derive(Clone, Debug)]
pub struct Config {
pub wrap: bool,
pub word_wrap: bool,
pub keybinds: HashMap<KeyBind, Message>,
}
@ -73,7 +73,7 @@ impl Config {
//TODO: load from cosmic-config
pub fn load() -> Self {
Self {
wrap: false,
word_wrap: false,
keybinds: KeyBind::load(),
}
}