Open dunyakirkali opened 2 months ago
I now understand the problem a bit better.
When I configure alacritty to send this command:
{ key = "K", mods = "Command", command = { program = "/opt/homebrew/bin/zellij", args = [
"action",
"clear",
] } },
This works when I have a single session open. But when I have more than one, it doesn't.
I am able to get it to work using the --session
argument. So I got the idea to use the session name ENV to pass in the command but alacritty doesn't support ENV in its config.
It feels like this must be a bug. When no session argument is provided to zellij action, shouldn't it use the active session?
I use zellij 0.40.1, together with Alacritty Version 0.13.2 (1) on a MacOS Version 14.6.1 (23G93) with zsh 5.9 (aarch64-apple-darwin22.4.0).
This is my alacritty config: https://github.com/dunyakirkali/dotfiles/blob/main/alacritty/.config/alacritty/alacritty.toml This is my zellij config: https://github.com/dunyakirkali/dotfiles/blob/main/zellij/.config/zellij/config.kdl
When I start zellij with a single session, all of my Alacritty shortcuts (Cmd + 1, Cmd + D, etc.) work as expected. If I create a 2nd zellij session, all of my Alacritty shortcuts stop working.
Any clues to what might be wrong?