Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions ui/desktop/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1855,6 +1855,18 @@ app.whenReady().then(async () => {
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',
Expand All @@ -1866,7 +1878,7 @@ app.whenReady().then(async () => {

// 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',
Expand All @@ -1878,15 +1890,15 @@ app.whenReady().then(async () => {
const recentFilesSubmenu = buildRecentFilesMenu();
if (recentFilesSubmenu.length > 0) {
fileMenu.submenu.insert(
2,
3,
new MenuItem({
label: 'Recent Directories',
submenu: recentFilesSubmenu,
})
);
}

fileMenu.submenu.insert(3, new MenuItem({ type: 'separator' }));
fileMenu.submenu.insert(4, new MenuItem({ type: 'separator' }));

// The Close Window item is here.

Expand Down
Loading