Fixed open dialog filters
This commit is contained in:
		
							
								
								
									
										17
									
								
								newton/fs.js
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								newton/fs.js
									
									
									
									
									
								
							| @@ -54,14 +54,15 @@ const openFiles = (startPath) => { | |||||||
|             title: "Open File(s):", |             title: "Open File(s):", | ||||||
|             defaultPath: (startPath) ? startPath : os.homedir(), |             defaultPath: (startPath) ? startPath : os.homedir(), | ||||||
|             filters: [ |             filters: [ | ||||||
|                 {"c": [".h", ".c"]}, |                 { name: "All Files", extensions: ["*"]                               }, | ||||||
|                 {"cpp": ["hpp", "cpp"]}, |                 { name: "c",         extensions: [".h", ".c"]                        }, | ||||||
|                 {"html": ["js", "css", "scss", "html", "ts"]}, |                 { name: "cpp",       extensions: ["hpp", "cpp"]                      }, | ||||||
|                 {"java": ["java"]}, |                 { name: "html",      extensions: ["js", "css", "scss", "html", "ts"] }, | ||||||
|                 {"python": ["py", "pyc"]}, |                 { name: "java",      extensions: ["java"]                            }, | ||||||
|                 {"rust": ["r", "rc"]}, |                 { name: "python",    extensions: ["py", "pyc"]                       }, | ||||||
|                 {"text": ["txt", "log", "md"]}, |                 { name: "rust",      extensions: ["r", "rc"]                         }, | ||||||
|                 {"go": ["go"]}, |                 { name: "text",      extensions: ["txt", "log", "md"]                }, | ||||||
|  |                 { name: "go",        extensions: ["go"]                              }, | ||||||
|             ], |             ], | ||||||
|             properties: [ |             properties: [ | ||||||
|                 'openFile', |                 'openFile', | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user