diff --git a/ui/desktop/src/main.ts b/ui/desktop/src/main.ts index f16e297e..f368bedf 100644 --- a/ui/desktop/src/main.ts +++ b/ui/desktop/src/main.ts @@ -1864,6 +1864,18 @@ async function appMain() { if (fileMenu?.submenu) { fileMenu.submenu.insert( 0, + new MenuItem({ + label: 'New Chat', + accelerator: 'CmdOrCtrl+T', + click() { + const focusedWindow = BrowserWindow.getFocusedWindow(); + if (focusedWindow) focusedWindow.webContents.send('set-view', ''); + }, + }) + ); + + fileMenu.submenu.insert( + 1, new MenuItem({ label: 'New Chat Window', accelerator: process.platform === 'darwin' ? 'Cmd+N' : 'Ctrl+N', @@ -1875,7 +1887,7 @@ async function appMain() { // Open goose to specific dir and set that as its working space fileMenu.submenu.insert( - 1, + 2, new MenuItem({ label: 'Open Directory...', accelerator: 'CmdOrCtrl+O', @@ -1887,7 +1899,7 @@ async function appMain() { const recentFilesSubmenu = buildRecentFilesMenu(); if (recentFilesSubmenu.length > 0) { fileMenu.submenu.insert( - 2, + 3, new MenuItem({ label: 'Recent Directories', submenu: recentFilesSubmenu, @@ -1895,7 +1907,7 @@ async function appMain() { ); } - fileMenu.submenu.insert(3, new MenuItem({ type: 'separator' })); + fileMenu.submenu.insert(4, new MenuItem({ type: 'separator' })); // The Close Window item is here.