diff --git a/src/apprt/gtk-ng/class/tab.zig b/src/apprt/gtk-ng/class/tab.zig index 8dbe21c13..20672abe4 100644 --- a/src/apprt/gtk-ng/class/tab.zig +++ b/src/apprt/gtk-ng/class/tab.zig @@ -353,7 +353,7 @@ pub const Tab = extern struct { // a close-page signal that the parent can intercept. switch (mode) { .this => tab_view.closePage(page), - .other => log.warn("close-tab:other is not implemented", .{}), + .other => tab_view.closeOtherPages(page), } } diff --git a/src/input/Binding.zig b/src/input/Binding.zig index 6d1050859..d475db539 100644 --- a/src/input/Binding.zig +++ b/src/input/Binding.zig @@ -558,8 +558,6 @@ pub const Action = union(enum) { /// /// If the mode is not specified, defaults to closing the current tab. /// - /// close-tab:other is only available on macOS. - /// /// This might trigger a close confirmation popup, depending on the value /// of the `confirm-close-surface` configuration setting. close_tab: CloseTabMode, diff --git a/src/input/command.zig b/src/input/command.zig index f6c29040a..63feb2edf 100644 --- a/src/input/command.zig +++ b/src/input/command.zig @@ -393,27 +393,18 @@ fn actionCommands(action: Action.Key) []const Command { .description = "Close the current terminal.", }}, - .close_tab => comptime if (builtin.target.os.tag.isDarwin()) - &.{ - .{ - .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.", - }, - } - else - &.{ - .{ - .action = .{ .close_tab = .this }, - .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,