feat(app): add tab close keybind (#11780)

This commit is contained in:
Rahul A Mistry
2026-02-02 18:20:06 +05:30
committed by GitHub
parent 34c58af796
commit 3408f1a6ae
3 changed files with 22 additions and 3 deletions

View File

@@ -689,6 +689,18 @@ export default function Page() {
slash: "open",
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"),