2021-09-16 21:38:43 +08:00
|
|
|
//go:build !windows && !linux
|
2018-09-01 14:38:30 +10:00
|
|
|
// +build !windows,!linux
|
2018-09-01 14:33:01 +10:00
|
|
|
|
|
|
|
package config
|
|
|
|
|
2022-03-16 19:46:02 +11:00
|
|
|
const DefaultEditCommandTemplate = `{{editor}} {{filename}}`
|
|
|
|
|
2018-09-01 14:33:01 +10:00
|
|
|
// GetPlatformDefaultConfig gets the defaults for the platform
|
2020-10-03 14:54:55 +10:00
|
|
|
func GetPlatformDefaultConfig() OSConfig {
|
|
|
|
return OSConfig{
|
2021-08-04 18:43:34 +09:00
|
|
|
EditCommand: ``,
|
2022-03-16 19:46:02 +11:00
|
|
|
EditCommandTemplate: DefaultEditCommandTemplate,
|
2021-08-04 18:43:34 +09:00
|
|
|
OpenCommand: "open {{filename}}",
|
|
|
|
OpenLinkCommand: "open {{link}}",
|
2020-10-03 14:54:55 +10:00
|
|
|
}
|
2018-09-01 14:33:01 +10:00
|
|
|
}
|