diff options
Diffstat (limited to 'packages/app/src/pages')
| -rw-r--r-- | packages/app/src/pages/session.tsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/app/src/pages/session.tsx b/packages/app/src/pages/session.tsx index da12be8f5..772ad063b 100644 --- a/packages/app/src/pages/session.tsx +++ b/packages/app/src/pages/session.tsx @@ -690,6 +690,18 @@ export default function Page() { onSelect: () => dialog.show(() => <DialogSelectFile onOpenFile={() => showAllFiles()} />), }, { + id: "tab.close", + title: language.t("command.tab.close"), + category: language.t("command.category.file"), + keybind: "mod+w", + disabled: !tabs().active(), + onSelect: () => { + const active = tabs().active() + if (!active) return + tabs().close(active) + }, + }, + { id: "context.addSelection", title: language.t("command.context.addSelection"), description: language.t("command.context.addSelection.description"), |
