open file instead of new file
mellbacon committed
Aug 17, 2022 at 13:20 UTC
28fe7fc3904b57f5f941440b7b246b8472f9e223
1 file changed
+2
-2
src/components/Menu/menu.ts
+2
-2
@@ -2,10 +2,10 @@ import { filetree, workspacename } from "../FileTree/TreeStore";
2
import { data, workspace } from "../FileTree/TreeData";
3
import { addTab } from "../Content/Editor/Tabs";
4
export const filemenu = [
5
- { option: "New File...", shortcut: "Ctrl + N", onclick: async () => {
5
+ { option: "New File...", shortcut: "Ctrl + N", onclick: async () => { console.log("click"); } },
6
+ { option: "Open File...", shortcut: "Ctrl + O", onclick: async () => {
7
await addTab();
8
} },
8
- { option: "Open File...", shortcut: "Ctrl + O", onclick: () => { console.log("click"); } },
9
{ option: "Open Folder", shortcut: "Ctrl + K", onclick: async () => {
10
let treedata = await data();
11
if (treedata === undefined) return;