diff --git a/newton/fs.js b/newton/fs.js index cbdf2a6..fb622d6 100644 --- a/newton/fs.js +++ b/newton/fs.js @@ -54,14 +54,15 @@ const openFiles = (startPath) => { title: "Open File(s):", defaultPath: (startPath) ? startPath : os.homedir(), filters: [ - {"c": [".h", ".c"]}, - {"cpp": ["hpp", "cpp"]}, - {"html": ["js", "css", "scss", "html", "ts"]}, - {"java": ["java"]}, - {"python": ["py", "pyc"]}, - {"rust": ["r", "rc"]}, - {"text": ["txt", "log", "md"]}, - {"go": ["go"]}, + { name: "All Files", extensions: ["*"] }, + { name: "c", extensions: [".h", ".c"] }, + { name: "cpp", extensions: ["hpp", "cpp"] }, + { name: "html", extensions: ["js", "css", "scss", "html", "ts"] }, + { name: "java", extensions: ["java"] }, + { name: "python", extensions: ["py", "pyc"] }, + { name: "rust", extensions: ["r", "rc"] }, + { name: "text", extensions: ["txt", "log", "md"] }, + { name: "go", extensions: ["go"] }, ], properties: [ 'openFile',