zellij-org/zellij

[feature-request] ability to auto-rename the tab/pane based on the currently running app

Open

#2,284 opened on Mar 13, 2023

View on GitHub
 (7 comments) (2 reactions) (0 assignees)Rust (32,593 stars) (1,191 forks)batch import
help wanted

Description

It would be useful if we had an option to automatically rename the tab (or pane) with the name of currently running command.

In tmux this is the default behavior and I think it quite useful to guide me to which tab I want to go.

In a hope to help with the implementation, I'd like to highlight one thing about such behavior in tmux: the renaming happens on the very next "screen refresh".

As we are constantly using the keyboard or the commands we are running generates output, the "screen refresh" thing happens most of the time and we have a feel that the renaming happens "right after the command is issued". But with the gif below I show examples of when actually the renaming happens:

tab-rename

Tab was renamed to find when I pressed X, and after I went back to bash, the tab was renamed only when I pressed X.

Contributor guide