Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zellij session interfering with Alacritty keyboard shortcuts #3585

Open
dunyakirkali opened this issue Sep 2, 2024 · 1 comment
Open

Zellij session interfering with Alacritty keyboard shortcuts #3585

dunyakirkali opened this issue Sep 2, 2024 · 1 comment

Comments

@dunyakirkali
Copy link

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?

@dunyakirkali
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant