introduce edit command template to open a specifig line of a file

This commit is contained in:
Ryooooooga
2021-08-03 21:38:03 +09:00
parent d626bcac00
commit 4f66093335
10 changed files with 71 additions and 13 deletions

View File

@@ -3,7 +3,8 @@ package config
// GetPlatformDefaultConfig gets the defaults for the platform
func GetPlatformDefaultConfig() OSConfig {
return OSConfig{
EditCommand: ``,
Editor: ``,
EditCommand: `{{editor}} {{filename}}`,
OpenCommand: `sh -c "xdg-open {{filename}} >/dev/null"`,
OpenLinkCommand: `sh -c "xdg-open {{link}} >/dev/null"`,
}