alacritty

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit e2eb5bbd2e564710d35d06f04789486b227ffeb8
parent 94cf97b42d9835976bc99463fc4e96330ceb0068
Author: Aaron Goodfellow <amgoodfellow@oakland.edu>
Date:   Fri, 15 Mar 2019 16:41:48 -0400

Add additional key bindings for changing font size

This fixes #2010.
Diffstat:
MCHANGELOG.md | 1+
Malacritty.yml | 3+++
Msrc/config/bindings.rs | 3+++
3 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Support for alternate keyboard layouts on macOS - Slow startup time on some X11 systems - The AltGr key no longer sends escapes (like Alt) +- Fixes increase/decrease font-size keybindings on international keyboards ## Version 0.2.9 diff --git a/alacritty.yml b/alacritty.yml @@ -466,11 +466,14 @@ key_bindings: #- { key: Insert, mods: Shift, action: PasteSelection } #- { key: Key0, mods: Control, action: ResetFontSize } #- { key: Equals, mods: Control, action: IncreaseFontSize } + #- { key: Add, mods: Control, action: IncreaseFontSize } #- { key: Subtract, mods: Control, action: DecreaseFontSize } + #- { key: Minus, mods: Control, action: DecreaseFontSize } # (macOS only) #- { key: Key0, mods: Command, action: ResetFontSize } #- { key: Equals, mods: Command, action: IncreaseFontSize } + #- { key: Add, mods: Command, action: IncreaseFontSize } #- { key: Minus, mods: Command, action: DecreaseFontSize } #- { key: K, mods: Command, action: ClearHistory } #- { key: K, mods: Command, chars: "\x0c" } diff --git a/src/config/bindings.rs b/src/config/bindings.rs @@ -186,7 +186,9 @@ pub fn platform_key_bindings() -> Vec<KeyBinding> { Key::Insert, [shift: true]; Action::PasteSelection; Key::Key0, [ctrl: true]; Action::ResetFontSize; Key::Equals, [ctrl: true]; Action::IncreaseFontSize; + Key::Add, [ctrl: true]; Action::IncreaseFontSize; Key::Subtract, [ctrl: true]; Action::DecreaseFontSize; + Key::Minus, [ctrl: true]; Action::DecreaseFontSize; ) } @@ -196,6 +198,7 @@ pub fn platform_key_bindings() -> Vec<KeyBinding> { KeyBinding; Key::Key0, [logo: true]; Action::ResetFontSize; Key::Equals, [logo: true]; Action::IncreaseFontSize; + Key::Add, [logo: true]; Action::IncreaseFontSize; Key::Minus, [logo: true]; Action::DecreaseFontSize; Key::K, [logo: true]; Action::ClearHistory; Key::K, [logo: true]; Action::Esc("\x0c".into());