2018-09-01 06:33:01 +02:00
|
|
|
package config
|
|
|
|
|
2022-03-16 10:46:02 +02:00
|
|
|
const DefaultEditCommandTemplate = `{{editor}} {{filename}}`
|
|
|
|
|
2018-09-01 06:33:01 +02:00
|
|
|
// GetPlatformDefaultConfig gets the defaults for the platform
|
2020-10-03 06:54:55 +02:00
|
|
|
func GetPlatformDefaultConfig() OSConfig {
|
|
|
|
return OSConfig{
|
2021-08-04 11:43:34 +02:00
|
|
|
EditCommand: ``,
|
2022-03-16 10:46:02 +02:00
|
|
|
EditCommandTemplate: DefaultEditCommandTemplate,
|
2021-10-09 09:32:36 +02:00
|
|
|
OpenCommand: `xdg-open {{filename}} >/dev/null`,
|
|
|
|
OpenLinkCommand: `xdg-open {{link}} >/dev/null`,
|
2020-10-03 06:54:55 +02:00
|
|
|
}
|
2018-09-01 06:33:01 +02:00
|
|
|
}
|