feat(app): add tab close keybind (#11780)
This commit is contained in:
parent
34c58af796
commit
3408f1a6ae
3 changed files with 22 additions and 3 deletions
|
|
@ -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"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue