Skip to content

Instantly share code, notes, and snippets.

@fl0w
Created October 28, 2018 18:41
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fl0w/3911346eb3e9f065b535b573d176f1eb to your computer and use it in GitHub Desktop.
Save fl0w/3911346eb3e9f065b535b573d176f1eb to your computer and use it in GitHub Desktop.
New Window shortcut for Alacritty on macOS
- { key: N, mods: Command, command: { program: "open", args: ["-nb", "io.alacritty"] } }
@catleeball
Copy link

Here is more direct way now, from the Alacritty skeleton config:

key_bindings:
  - { key: N, mods: Command, action: SpawnNewInstance }

@ignacio-dl
Copy link

What about cmd+n? is the default on Alacritty in macOS

@miwnwski
Copy link

miwnwski commented Apr 16, 2021

@ignacio-dl It wasn't when this was created.

@scottopell
Copy link

A new multi-window feature was added in alacritty/alacritty@1df7dc5, so if you use a release that includes that (not out as of writing), or compile yourself, then you can use the action CreateNewWindow to create a new alacritty window in the same process. This lets you cmd+tilde to switch windows within Alacritty as expected.

eg keybinding:

key_bindings:
  - { key: N, mods: Command, action: CreateNewWindow }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment