zellij icon indicating copy to clipboard operation
zellij copied to clipboard

Support icons (nerd fonts) or special characters in tab title / name

Open maulik13 opened this issue 4 months ago • 0 comments

I am trying to display tab titles dynamically using zsh hooks and using icons from nerd fonts. However, if the title text includes an icon Zellij does not display anything leaving the tab title empty.

Terminal: kitty Zellij Ver: 0.40.1 OS: Mac M1 (Sonoma 14.5 (23F79))

My configuration is simple,

default_shell "zsh"
copy_on_select true
pane_frames true

ui {
    pane_frames {
        rounded_corners true
    }
}

I am using the classic layout

layout {
    pane size=1 borderless=true {
        plugin location="tab-bar" {
            hide_swap_layout_indication true
        }
    }
    pane
    pane size=2 borderless=true {
        plugin location="status-bar" {
            classic true
        }
    }
}

Icons work fine in terminal in Kitty tab title and my prompt.

Steps to reproduce:

  1. Run zellij. This shows standard Tab #1
  2. Run zellij action rename-tab "hello git  "

This will result in tab name being blank.

maulik13 avatar Oct 15 '24 20:10 maulik13