aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/config/ui_config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty/src/config/ui_config.rs')
-rw-r--r--alacritty/src/config/ui_config.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/alacritty/src/config/ui_config.rs b/alacritty/src/config/ui_config.rs
index 460eebb0..a58c1fd3 100644
--- a/alacritty/src/config/ui_config.rs
+++ b/alacritty/src/config/ui_config.rs
@@ -14,7 +14,7 @@ use alacritty_terminal::term::search::RegexSearch;
use crate::config::bell::BellConfig;
use crate::config::bindings::{
- self, Action, Binding, BindingMode, Key, KeyBinding, ModsWrapper, MouseBinding,
+ self, Action, Binding, Key, KeyBinding, ModeWrapper, ModsWrapper, MouseBinding,
};
use crate::config::color::Colors;
use crate::config::debug::Debug;
@@ -105,8 +105,8 @@ impl UiConfig {
let binding = KeyBinding {
trigger: binding.key,
mods: binding.mods.0,
- mode: BindingMode::empty(),
- notmode: BindingMode::empty(),
+ mode: binding.mode.mode,
+ notmode: binding.mode.not_mode,
action: Action::Hint(hint.clone()),
};
@@ -242,6 +242,7 @@ impl Default for Hints {
binding: Some(HintBinding {
key: Key::Keycode(VirtualKeyCode::U),
mods: ModsWrapper(ModifiersState::SHIFT | ModifiersState::CTRL),
+ mode: Default::default(),
}),
}],
alphabet: Default::default(),
@@ -340,6 +341,8 @@ pub struct HintBinding {
pub key: Key,
#[serde(default)]
pub mods: ModsWrapper,
+ #[serde(default)]
+ pub mode: ModeWrapper,
}
/// Hint mouse highlighting.