MCPcopy Create free account
hub / github.com/cogentcore/core / OpenFilesDefault

Method OpenFilesDefault

filetree/file.go:36–40  ·  view source on GitHub ↗

OpenFilesDefault opens selected files with default app for that file type (os defined). runs open on Mac, xdg-open on Linux, and start on Windows

()

Source from the content-addressed store, hash-verified

34// OpenFilesDefault opens selected files with default app for that file type (os defined).
35// runs open on Mac, xdg-open on Linux, and start on Windows
36func (fn *Node) OpenFilesDefault() { //types:add
37 fn.SelectedFunc(func(sn *Node) {
38 sn.openFileDefault()
39 })
40}
41
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

Callers

nothing calls this directly

Calls 2

SelectedFuncMethod · 0.95
openFileDefaultMethod · 0.80

Tested by

no test coverage detected