Skip to content

Commit c9a5556

Browse files
committed
fix(app): register new worktree shortcut in new layout
1 parent 1ae844e commit c9a5556

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎packages/app/src/pages/new-session.tsx‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,17 @@ export default function NewSessionPage() {
126126
keybind: "ctrl+l",
127127
onSelect: () => promptInputV2Controller.restoreFocus(),
128128
},
129+
{
130+
id: "workspace.new",
131+
title: language.t("workspace.new"),
132+
category: language.t("command.category.workspace"),
133+
keybind: "mod+shift+w",
134+
disabled: !showWorkspaceBar(),
135+
onSelect: () => {
136+
setStore("worktree", "create")
137+
promptInputV2Controller.restoreFocus()
138+
},
139+
},
129140
])
130141

131142
createEffect(() => {

0 commit comments

Comments
 (0)