wezterm: Rename tabs
Rename tabs with `<leader><S-R>`. This will provide a (full-screen) prompt in which you can exit with esc (not changing anything), provide a static name for the tab, or hit enter with nothing on the prompt to return to the default naming behavior.
This commit is contained in:
parent
1f328d2663
commit
c3e2720b3c
1 changed files with 14 additions and 1 deletions
|
|
@ -52,6 +52,19 @@ local keys = {
|
|||
mods = "LEADER|CTRL",
|
||||
action = act.PaneSelect({ mode = "MoveToNewTab" }),
|
||||
},
|
||||
{
|
||||
key = "R",
|
||||
mods = "LEADER",
|
||||
action = act.PromptInputLine({
|
||||
description = "Enter new name for tab",
|
||||
action = wezterm.action_callback(function(win, _, line)
|
||||
if line then
|
||||
win:active_tab():set_title(line)
|
||||
end
|
||||
end),
|
||||
}),
|
||||
},
|
||||
|
||||
{ key = "c", mods = "LEADER", action = act.SpawnTab("CurrentPaneDomain") },
|
||||
{ key = ",", mods = "LEADER", action = act.ActivateTabRelative(-1) },
|
||||
{ key = ".", mods = "LEADER", action = act.ActivateTabRelative(1) }, -- workspace selection
|
||||
|
|
@ -62,6 +75,7 @@ local keys = {
|
|||
mods = "LEADER",
|
||||
action = act.ShowLauncherArgs({ flags = "FUZZY|WORKSPACES" }),
|
||||
},
|
||||
{ key = "t", mods = "LEADER", action = act.EmitEvent("toggle-tabbar") },
|
||||
{ key = "T", mods = "LEADER", action = act.ShowTabNavigator },
|
||||
{ key = "[", mods = "LEADER", action = act.ActivateCopyMode },
|
||||
{
|
||||
|
|
@ -105,7 +119,6 @@ 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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue