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-10-09 16:32:36 +09:00
|
|
|
OpenCommand: `xdg-open {{filename}} >/dev/null`,
|
|
|
|
OpenLinkCommand: `xdg-open {{link}} >/dev/null`,
|
2020-10-03 14:54:55 +10:00
|
|
|
}
|
2018-09-01 14:33:01 +10:00
|
|
|
}
|