zellij icon indicating copy to clipboard operation
zellij copied to clipboard

Keymaps/configs don't restore on attach

Open erikh opened this issue 1 year ago • 3 comments

Basic information

zellij --version:

0.39.2 (compiled from crate)

stty size:

50 196

uname -av or ver(Windows):

Linux frostapp.dev 6.2.0-39-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 14 14:18:00 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

2. Issues with the Zellij UI / behavior / crash

Issue description

  • SSH into a server
  • Start zellij session (I used a named one, called default, by default, by way of a script, which is pasted below)
  • Disconnect from the session (network or detach/exit, doesn't matter)
  • Reconnect to server
  • zellij attach default. Keys are reset like they were never configured; my ^F binding to place ^B doesn't work, none of my custom configuration works.

Other relevant information

I'm using alacritty as my host terminal and standard openssh.

erikh avatar Apr 01 '24 04:04 erikh

here's the shell function I use to launch zellij initially; when I reattach, I just use zellij attach.

t () {
	local session_name=${1:-default}
	export ZELLIJ_CONFIG_FILE=$HOME/config/zellij.kdl
	zellij delete-session $session_name
	zellij --session=$session_name
}

Note that the configuration file above is also stored in ~/.config/zellij/zellij.kdl; just not sure why this isn't taking.

erikh avatar Apr 01 '24 04:04 erikh

Apparently setting the environment variable corrected my situation. I see why it wouldn't work without the config file in the proper spot; I apologize if this is a bogus report, but can someone tell me what I did wrong here? I know you are all probably very busy and thank you for your hard work and time.

erikh avatar Apr 01 '24 04:04 erikh

Setting what environment variable?

imsnif avatar Apr 02 '24 06:04 imsnif