Fixed open dialog filters
This commit is contained in:
parent
c08e6e2a00
commit
04e3bbcc77
17
newton/fs.js
17
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',
|
||||
|
Loading…
Reference in New Issue
Block a user