refactor(wezterm): no longer show active pane path in tabbar
This commit is contained in:
parent
8a75cfde76
commit
9448ac5dc2
@ -40,13 +40,7 @@ wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_wid
|
|||||||
-- Otherwise, use the title from the active pane
|
-- Otherwise, use the title from the active pane
|
||||||
-- in that tab
|
-- in that tab
|
||||||
local active_pane = tab_info.active_pane
|
local active_pane = tab_info.active_pane
|
||||||
---@type Url
|
return active_pane.title
|
||||||
local pane_cwd
|
|
||||||
pane_cwd = tab_info.active_pane.current_working_dir
|
|
||||||
if type(pane_cwd) == "userdata" then
|
|
||||||
pane_cwd = pane_cwd.file_path:gsub(wezterm.home_dir, "~")
|
|
||||||
end
|
|
||||||
return string.format("%s %s", active_pane.title, pane_cwd or "")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local bg = color_names.kanagawa.sumiInk0
|
local bg = color_names.kanagawa.sumiInk0
|
||||||
|
Loading…
Reference in New Issue
Block a user