From d5b2dac73a57ac72c1e9587ee5b53f9ca9f4a6e3 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Fri, 27 Jan 2023 06:02:47 +0000 Subject: Create new windows with Cmd+N by default This changes the default Cmd+N binding on macOS to create a new window rather than spawning a new instance. Initially this change was held back for further testing of the multi-window feature. At this point all significant issues found with it have been fixed so it should be ready for prime-time now. --- CHANGELOG.md | 1 + alacritty.yml | 2 +- alacritty/src/config/bindings.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40855955..9281f20c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - `font.glyph_offset.y` is now applied to underline/strikeout - Always use sRGB color space on macOS - Erase in line after the last column will no longer clear the last column +- Open new windows by default with macOS `Cmd`+`N` binding ### Fixed diff --git a/alacritty.yml b/alacritty.yml index 9ece3bf1..07f718b6 100644 --- a/alacritty.yml +++ b/alacritty.yml @@ -865,7 +865,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: N, mods: Command, action: CreateNewWindow } #- { key: F, mods: Command|Control, action: ToggleFullscreen } #- { key: F, mods: Command, mode: ~Search, action: SearchForward } #- { key: B, mods: Command, mode: ~Search, action: SearchBackward } diff --git a/alacritty/src/config/bindings.rs b/alacritty/src/config/bindings.rs index 7b654b66..e3ee41e7 100644 --- a/alacritty/src/config/bindings.rs +++ b/alacritty/src/config/bindings.rs @@ -714,7 +714,7 @@ pub fn platform_key_bindings() -> Vec { Action::Esc("\x0c".into()); K, ModifiersState::LOGO, ~BindingMode::VI, ~BindingMode::SEARCH; Action::ClearHistory; V, ModifiersState::LOGO, ~BindingMode::VI; Action::Paste; - N, ModifiersState::LOGO; Action::SpawnNewInstance; + N, ModifiersState::LOGO; Action::CreateNewWindow; F, ModifiersState::CTRL | ModifiersState::LOGO; Action::ToggleFullscreen; C, ModifiersState::LOGO; Action::Copy; C, ModifiersState::LOGO, +BindingMode::VI, ~BindingMode::SEARCH; Action::ClearSelection; -- cgit