Skip to content

Commit

Permalink
Add wezterm shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
FaustXVI committed Oct 15, 2024
1 parent 8a193e3 commit 3589e62
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions modules/system/home-manager/shells/wezterm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,35 @@
font_size = 18,
scrollback_lines = 20000,
color_scheme = 'Darcula (base16)',
keys = {
{
mods = 'ALT',
key = 'w',
action = wezterm.action.CloseCurrentTab { confirm = true },
}, {
mods = 'ALT',
key = 't',
action = wezterm.action.SpawnTab 'CurrentPaneDomain',
}, {
mods = 'SHIFT|ALT',
key = 't',
action = wezterm.action.ShowTabNavigator
}, {
key = 'e',
mods = 'ALT',
action = wezterm.action.PromptInputLine {
description = 'Enter new name for tab',
action = wezterm.action_callback(function(window, pane, line)
-- line will be `nil` if they hit escape without entering anything
-- An empty string if they just hit enter
-- Or the actual line of text they wrote
if line then
window:active_tab():set_title(line)
end
end),
},
},
}
}
'';
};
Expand Down

0 comments on commit 3589e62

Please sign in to comment.