zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
20.91k stars 639 forks source link

Pane name sometimes appears duplicated when spawning new tabs. #3394

Open LechintanTudor opened 4 months ago

LechintanTudor commented 4 months ago

I use a fish function that runs whenever the current working directory changes to update the name of the active pane:

if set -q ZELLIJ
    function zellij_update_name --on-variable PWD
        if test $PWD = $HOME
            set -f directory '~'
        else
            set -f directory $(basename $PWD)
        end

        zellij action rename-pane $directory
    end

    zellij_update_name
end


Sometimes when creating a new tab, the pane title is duplicated, e.g. instead of the pane being named ~, it's named ~~, as seen in the screenshot below. Screenshot from 2024-06-03 17-22-54

Somewhat related, it would be useful to be able to disable the automatic name assignment from Zellij.