summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alacritty.yml5
-rw-r--r--alacritty/src/config/bindings.rs3
2 files changed, 5 insertions, 3 deletions
diff --git a/alacritty.yml b/alacritty.yml
index 09abce3c..00c16ce3 100644
--- a/alacritty.yml
+++ b/alacritty.yml
@@ -528,8 +528,9 @@
#
# - `mods` (see key bindings)
#mouse_bindings:
-# - { mouse: Right, action: ExpandSelection }
-# - { mouse: Middle, mode: ~Vi, action: PasteSelection }
+# - { mouse: Right, action: ExpandSelection }
+# - { mouse: Right, mods: Control, action: ExpandSelection }
+# - { mouse: Middle, mode: ~Vi, action: PasteSelection }
# Key bindings
#
diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs
index 533573c8..6de0d4b1 100644
--- a/alacritty/src/config/bindings.rs
+++ b/alacritty/src/config/bindings.rs
@@ -363,7 +363,8 @@ macro_rules! bindings {
pub fn default_mouse_bindings() -> Vec<MouseBinding> {
bindings!(
MouseBinding;
- MouseButton::Right; MouseAction::ExpandSelection;
+ MouseButton::Right; MouseAction::ExpandSelection;
+ MouseButton::Right, ModifiersState::CTRL; MouseAction::ExpandSelection;
MouseButton::Middle, ~BindingMode::VI; Action::PasteSelection;
)
}