diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-03-28 18:00:40 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-04-13 13:14:00 +0200 |
commit | e4e16fa38ea5d89fb139c5153338e32d1eeafede (patch) | |
tree | 800d63b724b82a5c8dc5d9de6021a5e46306ebfc /pkg/config/user_config.go | |
parent | b7e029adc7c5cf27ae2c5db768b971a959fa2449 (diff) |
Change OpenCommand to Open and OpenLinkCommand to OpenLink
We do this for consistency with the edit settings. The old names are kept as a
fallback for now.
Diffstat (limited to 'pkg/config/user_config.go')
-rw-r--r-- | pkg/config/user_config.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/config/user_config.go b/pkg/config/user_config.go index 0c227899e..fb0638e43 100644 --- a/pkg/config/user_config.go +++ b/pkg/config/user_config.go @@ -311,6 +311,13 @@ type OSConfig struct { // are defined in the getPreset function in editor_presets.go. EditPreset string `yaml:"editPreset,omitempty"` + // Command for opening a file, as if the file is double-clicked. Should + // contain "{{filename}}", but doesn't support "{{line}}". + Open string `yaml:"open,omitempty"` + + // Command for opening a link. Should contain "{{link}}". + OpenLink string `yaml:"openLink,omitempty"` + // -------- // The following configs are all deprecated and kept for backward @@ -327,9 +334,11 @@ type OSConfig struct { EditCommandTemplate string `yaml:"editCommandTemplate,omitempty"` // OpenCommand is the command for opening a file + // Deprecated: use Open instead. OpenCommand string `yaml:"openCommand,omitempty"` // OpenLinkCommand is the command for opening a link + // Deprecated: use OpenLink instead. OpenLinkCommand string `yaml:"openLinkCommand,omitempty"` } |