Replies: 1 comment 2 replies
-
It seems to be based on terminal title. That can be set through:
Probably every time a command is run (so it updates on cwd changing, or other things). That can be done like this in your .zshrc for zsh:
There's probably more idiomatic ways to set terminal title, but the above at least works for zsh. Unsure about other shells. It took me forever to find this out through trying random things - it's undocumented. I found this post before I figured it out, and my reaction was literally https://xkcd.com/979/. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that depending on what shell I'm using the way of naming
Pane
is different.zsh
:Pane X
where X is the pane countfish
:vim .
the pane name will bevim . ~/path/to/where/it/opened
and won't change againnushell
:Pane 1
and all new panes will have namenu
, no matter if vim is opened or folder changed etcSo my question is, where does Zellij gets the pane name information from? I guess it must be from the shell somehow, if yes can I adjust my shell config to change the way of naming panes when switching folders, or should I create Zellij plugin to handle this?
In case of
vim
I think I should create a small plugin for vim/nvim to change the pane names depending on buffer opened instead, right?Beta Was this translation helpful? Give feedback.
All reactions