diff --git a/src/components/AppMenu.vue b/src/components/AppMenu.vue index 9e30b2f01..89ac2307f 100644 --- a/src/components/AppMenu.vue +++ b/src/components/AppMenu.vue @@ -54,7 +54,12 @@ interface MenuItem { } const fileMenu: MenuItem[] = [ - { label: 'Open…', shortcut: `${mod}O`, action: () => openFileDialog(store) }, + { + label: 'New', + shortcut: `${mod}N`, + action: () => import('@/stores/tabs').then((m) => m.createTab()) + }, + { label: 'Open…', shortcut: `${mod}O`, action: () => openFileDialog() }, { separator: true }, { label: 'Save', shortcut: `${mod}S`, action: () => store.saveFigFile() }, { label: 'Save as…', shortcut: `${mod}⇧S`, action: () => store.saveFigFileAs() }, @@ -159,7 +164,8 @@ const topMenus = [ v-else class="min-w-0 flex-1 cursor-default truncate rounded px-1 py-0.5 text-xs text-surface hover:bg-hover" @dblclick="startRename" - >{{ store.state.documentName }} + >{{ store.state.documentName }}