openFileDefault opens file with default app for that file type (os defined) runs open on Mac, xdg-open on Linux, and start on Windows
()
| 42 | // openFileDefault opens file with default app for that file type (os defined) |
| 43 | // runs open on Mac, xdg-open on Linux, and start on Windows |
| 44 | func (fn *Node) openFileDefault() error { |
| 45 | core.TheApp.OpenURL("file://" + string(fn.Filepath)) |
| 46 | return nil |
| 47 | } |
| 48 | |
| 49 | // duplicateFiles makes a copy of selected files |
| 50 | func (fn *Node) duplicateFiles() { //types:add |
no test coverage detected