diff options
| author | Rahul A Mistry <[email protected]> | 2026-02-02 18:20:06 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-02 06:50:06 -0600 |
| commit | 3408f1a6ae7f8783d5fa80dab2cb2cf2e976da6d (patch) | |
| tree | 6dda0c528c3bf69c3f76c9a5041da3adcca25779 /packages/app/src/pages/session.tsx | |
| parent | 34c58af796befb22cd557012ec70d3e520b393b9 (diff) | |
| download | opencode-3408f1a6ae7f8783d5fa80dab2cb2cf2e976da6d.tar.gz opencode-3408f1a6ae7f8783d5fa80dab2cb2cf2e976da6d.zip | |
feat(app): add tab close keybind (#11780)
Diffstat (limited to 'packages/app/src/pages/session.tsx')
| -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"), |
