1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

fix: improve default editCommandTemplate

This commit is contained in:
Ryooooooga
2022-04-22 21:54:03 +09:00
parent 8b103b16bd
commit e5730cb80b
6 changed files with 34 additions and 25 deletions

View File

@ -1,12 +1,10 @@
package config
const DefaultEditCommandTemplate = `{{editor}} {{filename}}`
// GetPlatformDefaultConfig gets the defaults for the platform
func GetPlatformDefaultConfig() OSConfig {
return OSConfig{
EditCommand: ``,
EditCommandTemplate: DefaultEditCommandTemplate,
EditCommandTemplate: "",
OpenCommand: `xdg-open {{filename}} >/dev/null`,
OpenLinkCommand: `xdg-open {{link}} >/dev/null`,
}