From 84e4c4ba1740bbf5663a9483c9bf420f771a1ea5 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 7 Jun 2023 05:04:17 -0500 Subject: [PATCH] fix(wezterm): add fallback tab title if tab title is empty --- dots/.config/wezterm/config/theme/colors.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dots/.config/wezterm/config/theme/colors.lua b/dots/.config/wezterm/config/theme/colors.lua index f6f264d9..9ece5c1b 100644 --- a/dots/.config/wezterm/config/theme/colors.lua +++ b/dots/.config/wezterm/config/theme/colors.lua @@ -157,6 +157,10 @@ wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_wid local title = " " .. wezterm.truncate_right(tab_title(tab), max_width - 2) .. " " + if title:match("^%s+$") then + title = " N/A " + end + if tab.is_active then bg = color_names.kanagawa.sumiInk0 fg = color_names.kanagawa.oniViolet