diff --git a/terminal/.config/wezterm/maps.lua b/terminal/.config/wezterm/maps.lua index 006436a..1b66ed9 100644 --- a/terminal/.config/wezterm/maps.lua +++ b/terminal/.config/wezterm/maps.lua @@ -104,6 +104,18 @@ local keys = { { key = "e", mods = "LEADER", action = act.EmitEvent("edit-scrollback") }, { key = "a", mods = "CTRL|ALT", action = act.EmitEvent("toggle-leader") }, { key = "t", mods = "LEADER", action = act.EmitEvent("toggle-tabbar") }, + { + key = ":", + mods = "LEADER|SHIFT", + action = act.PromptInputLine({ + description = "Tab name: ", + action = wezterm.action_callback(function(window, _, line) + if line then + window:active_tab():set_title(line) + end + end), + }), + }, { key = "Enter", mods = "CTRL", action = wezterm.action({ SendString = "\x1b[13;5u" }) }, { key = "Enter", mods = "SHIFT", action = wezterm.action({ SendString = "\x1b[13;2u" }) }, }