summaryrefslogtreecommitdiffstats
path: root/alacritty_macos.yml
diff options
context:
space:
mode:
authorBrandur <brandur@mutelight.org>2017-02-05 18:32:43 -0800
committerJoe Wilm <jwilm@users.noreply.github.com>2017-02-05 18:53:51 -0800
commit12cd04fea2d49f712226b75922bc2c035729c201 (patch)
treef83f7083233331758134b95bae933a1c9772c637 /alacritty_macos.yml
parent82c9235bb194b7f535ed46516d793a96a0d30bf4 (diff)
Add "Quit" action to allow exit on a Cmd-W or Cmd-Q
Adds a new "Quit" action and binds it to Cmd-W and Cmd-Q on Mac OS in an attempt to make Alacritty feel more like a "normal" citizen of the operating system. Alternatives like Ctrl-D are okay, but I usually want to leave my shells nested within Tmux open even if I exit my terminal. It's also largely selfish: I've built up muscle memory over the years that takes my fingers to Cmd-Q first (and I suspect I'm not the only one). The implementation for an exit is copied from `event.rs` which notably is already tagged with a FIXME. It seems that `tty.rs` contains a `process_should_exit` system to help handle a `SIGCHLD`, and it's possible that these two exit implementations should be merged together. I could probably tackle that as my next project. As mentioned in #218, Alacritty can't really spawn other windows right now, so I've tied in Cmd-W as simply another synonym for quitting until that's implemented. Fixes #218.
Diffstat (limited to 'alacritty_macos.yml')
-rw-r--r--alacritty_macos.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/alacritty_macos.yml b/alacritty_macos.yml
index 386e4590..a3d8df86 100644
--- a/alacritty_macos.yml
+++ b/alacritty_macos.yml
@@ -144,6 +144,8 @@ colors:
key_bindings:
- { key: V, mods: Command, action: Paste }
- { key: C, mods: Command, action: Copy }
+ - { key: Q, mods: Command, action: Quit }
+ - { key: W, mods: Command, action: Quit }
- { key: Home, chars: "\x1b[H", mode: ~AppCursor }
- { key: Home, chars: "\x1b[1~", mode: AppCursor }
- { key: End, chars: "\x1b[F", mode: ~AppCursor }