diff options
author | Christian Duerr <contact@christianduerr.com> | 2023-01-27 06:02:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-27 06:02:47 +0000 |
commit | d5b2dac73a57ac72c1e9587ee5b53f9ca9f4a6e3 (patch) | |
tree | d52b70291484364d5c2027078be6002a5b3e7df5 | |
parent | 87c38aa93023a98bcf55a2f75ef6fcfd9477e5fe (diff) | |
download | alacritty-d5b2dac73a57ac72c1e9587ee5b53f9ca9f4a6e3.tar.gz alacritty-d5b2dac73a57ac72c1e9587ee5b53f9ca9f4a6e3.zip |
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.
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | alacritty.yml | 2 | ||||
-rw-r--r-- | 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<KeyBinding> { 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; |