From bb5e22c57214c0073ecf3d7f72dc57dd4cc93156 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 12 Dec 2023 21:48:39 -0600 Subject: [PATCH] refactor(wezterm): use ellipsis for cut off on tab titles --- dots/.config/wezterm/config/tabbar.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dots/.config/wezterm/config/tabbar.lua b/dots/.config/wezterm/config/tabbar.lua index 2f968869..da374d9e 100644 --- a/dots/.config/wezterm/config/tabbar.lua +++ b/dots/.config/wezterm/config/tabbar.lua @@ -1,6 +1,5 @@ local wezterm = require("wezterm") local color_names = require("config.theme.colors").color_names -local log = require("lib.log") local edges = { solid = { @@ -49,7 +48,7 @@ wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_wid local title = tab_title(tab) if #title > max_width - 1 then - title = " " .. wezterm.truncate_right(title, max_width - 6) .. "..." + title = " " .. wezterm.truncate_right(title, max_width - 6) .. "…" else title = " " .. title .. " " end