feat(wezterm): log events to debug

This commit is contained in:
Price Hiller 2023-08-29 23:32:46 -05:00
parent f19671abbd
commit ab9ad001b2
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

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