diff options
| author | WeZZard <960509+WeZZard@users.noreply.github.com> | 2026-07-17 15:20:38 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-17 09:20:38 +0200 |
| commit | cd50d723b54c3b63e33b4292ccca5797a4d378da (patch) | |
| tree | 2a12a988937012c52ce75d93abf8ca5837e97c0c /zellij-utils/src/input | |
| parent | fix(config): allow binding theme actions in config.kdl (#5302) (diff) | |
| download | sl0ppij-cd50d723b54c3b63e33b4292ccca5797a4d378da.tar.gz sl0ppij-cd50d723b54c3b63e33b4292ccca5797a4d378da.tar.xz sl0ppij-cd50d723b54c3b63e33b4292ccca5797a4d378da.zip | |
feat(config): add mouse_scroll_resize option (#5283)
Diffstat (limited to 'zellij-utils/src/input')
| -rw-r--r-- | zellij-utils/src/input/options.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zellij-utils/src/input/options.rs b/zellij-utils/src/input/options.rs index fb1e8af8..da5f0248 100644 --- a/zellij-utils/src/input/options.rs +++ b/zellij-utils/src/input/options.rs @@ -351,6 +351,12 @@ pub struct Options { #[serde(default)] pub advanced_mouse_actions: Option<bool>, + /// Whether Ctrl+ScrollWheel resizes panes + /// default is true + #[clap(long, value_parser)] + #[serde(default)] + pub mouse_scroll_resize: Option<bool>, + /// Whether to enable mouse hover visual effects (frame highlight and help text) /// default is true #[clap(long, value_parser)] @@ -498,6 +504,7 @@ impl Options { let show_startup_tips = other.show_startup_tips.or(self.show_startup_tips); let show_release_notes = other.show_release_notes.or(self.show_release_notes); let advanced_mouse_actions = other.advanced_mouse_actions.or(self.advanced_mouse_actions); + let mouse_scroll_resize = other.mouse_scroll_resize.or(self.mouse_scroll_resize); let mouse_hover_effects = other.mouse_hover_effects.or(self.mouse_hover_effects); let visual_bell = other.visual_bell.or(self.visual_bell); let focus_follows_mouse = other.focus_follows_mouse.or(self.focus_follows_mouse); @@ -560,6 +567,7 @@ impl Options { show_startup_tips, show_release_notes, advanced_mouse_actions, + mouse_scroll_resize, mouse_hover_effects, visual_bell, focus_follows_mouse, @@ -643,6 +651,7 @@ impl Options { let show_startup_tips = other.show_startup_tips.or(self.show_startup_tips); let show_release_notes = other.show_release_notes.or(self.show_release_notes); let advanced_mouse_actions = other.advanced_mouse_actions.or(self.advanced_mouse_actions); + let mouse_scroll_resize = other.mouse_scroll_resize.or(self.mouse_scroll_resize); let mouse_hover_effects = other.mouse_hover_effects.or(self.mouse_hover_effects); let visual_bell = other.visual_bell.or(self.visual_bell); let focus_follows_mouse = merge_bool(other.focus_follows_mouse, self.focus_follows_mouse); @@ -705,6 +714,7 @@ impl Options { show_startup_tips, show_release_notes, advanced_mouse_actions, + mouse_scroll_resize, mouse_hover_effects, visual_bell, focus_follows_mouse, |
