summaryrefslogtreecommitdiff
path: root/src/input/command.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/command.zig')
-rw-r--r--src/input/command.zig17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/input/command.zig b/src/input/command.zig
index 615ffb713..63feb2edf 100644
--- a/src/input/command.zig
+++ b/src/input/command.zig
@@ -393,11 +393,18 @@ fn actionCommands(action: Action.Key) []const Command {
.description = "Close the current terminal.",
}},
- .close_tab => comptime &.{.{
- .action = .close_tab,
- .title = "Close Tab",
- .description = "Close the current tab.",
- }},
+ .close_tab => comptime &.{
+ .{
+ .action = .{ .close_tab = .this },
+ .title = "Close Tab",
+ .description = "Close the current tab.",
+ },
+ .{
+ .action = .{ .close_tab = .other },
+ .title = "Close Other Tabs",
+ .description = "Close all tabs in this window except the current one.",
+ },
+ },
.close_window => comptime &.{.{
.action = .close_window,