feat(wezterm): log events to debug
This commit is contained in:
parent
f19671abbd
commit
ab9ad001b2
@ -1,5 +1,6 @@
|
||||
local wezterm = require("wezterm")
|
||||
local color_names = require("config.theme.colors").color_names
|
||||
local log = require("lib.log")
|
||||
|
||||
local edges = {
|
||||
solid = {
|
||||
@ -14,6 +15,8 @@ local edges = {
|
||||
|
||||
---@diagnostic disable-next-line: unused-local
|
||||
wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_width)
|
||||
log.debug("received event", { prefix = "format-tab-title", ignore_result = true })
|
||||
|
||||
local function tab_title(tab_info)
|
||||
local title = tab_info.tab_title
|
||||
-- if the tab title is explicitly set, take that
|
||||
@ -55,6 +58,7 @@ wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_wid
|
||||
end)
|
||||
|
||||
wezterm.on("update-status", function(window, pane)
|
||||
log.debug("received event", { prefix = "update-status", ignore_result = true })
|
||||
-- Each element holds the text for a cell in a "powerline" style << fade
|
||||
|
||||
-- Figure out the cwd and host of the current pane.
|
||||
|
Loading…
Reference in New Issue
Block a user