refactor(wezterm): use ellipsis for cut off on tab titles

This commit is contained in:
Price Hiller 2023-12-12 21:48:39 -06:00
parent eaf35f18c1
commit bb5e22c572
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -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