aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Lilienthal <nathan@nixpulvis.com>2020-03-17 15:37:36 -0400
committerGitHub <noreply@github.com>2020-03-17 22:37:36 +0300
commit64db7d3daaed4e06fb8292227622bbc4cdaa2cf0 (patch)
tree970785834e5a9b0d454c50b8c44cfdab524436a3
parent6ad0be5fb36ee6fbb5e360664778450c5bdfe6bb (diff)
downloadalacritty-64db7d3daaed4e06fb8292227622bbc4cdaa2cf0.tar.gz
alacritty-64db7d3daaed4e06fb8292227622bbc4cdaa2cf0.zip
Add default keybinding for SpawnNewInstance on macOS
-rw-r--r--CHANGELOG.md4
-rw-r--r--alacritty.yml1
-rw-r--r--alacritty/src/config/bindings.rs1
3 files changed, 6 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a523adaf..009faadf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## 0.5.0-dev
+### Added
+
+- Default Command+N keybinding for SpawnNewInstance on macOS
+
## 0.4.2-dev
### Packaging
diff --git a/alacritty.yml b/alacritty.yml
index d444abb3..1fcf46b8 100644
--- a/alacritty.yml
+++ b/alacritty.yml
@@ -527,6 +527,7 @@
#- { key: M, mods: Command, action: Minimize }
#- { key: Q, mods: Command, action: Quit }
#- { key: W, mods: Command, action: Quit }
+ #- { key: N, mods: Command, action: SpawnNewInstance }
#- { key: F, mods: Command|Control, action: ToggleFullscreen }
#- { key: Paste, action: Paste }
diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs
index d5360e9a..48a1b9fb 100644
--- a/alacritty/src/config/bindings.rs
+++ b/alacritty/src/config/bindings.rs
@@ -433,6 +433,7 @@ pub fn platform_key_bindings() -> Vec<KeyBinding> {
Add, ModifiersState::LOGO; Action::IncreaseFontSize;
Minus, ModifiersState::LOGO; Action::DecreaseFontSize;
Insert, ModifiersState::SHIFT; Action::Esc("\x1b[2;2~".into());
+ N, ModifiersState::LOGO; Action::SpawnNewInstance;
F, ModifiersState::CTRL | ModifiersState::LOGO; Action::ToggleFullscreen;
K, ModifiersState::LOGO; Action::ClearHistory;
K, ModifiersState::LOGO; Action::Esc("\x0c".into());