From ab9ad001b2b52077290940d3477a69045772c2b3 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 29 Aug 2023 23:32:46 -0500 Subject: [PATCH] feat(wezterm): log events to debug --- dots/.config/wezterm/config/tabbar.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dots/.config/wezterm/config/tabbar.lua b/dots/.config/wezterm/config/tabbar.lua index 88d76229..30c7b0e2 100644 --- a/dots/.config/wezterm/config/tabbar.lua +++ b/dots/.config/wezterm/config/tabbar.lua @@ -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.