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

@ -83,7 +83,7 @@ git:
diffContextSize: 3 # how many lines of context are shown around a change in diffs
os:
editCommand: '' # see 'Configuring File Editing' section
editCommandTemplate: '{{editor}} {{filename}}'
editCommandTemplate: ''
openCommand: ''
refresher:
refreshInterval: 10 # File/submodule refresh interval in seconds. Auto-refresh can be disabled via option 'git.autoRefresh'.
@ -273,7 +273,7 @@ You can specify a line number you are currently at when in the line-by-line mode
```yaml
os:
editCommand: 'vim'
editCommandTemplate: '{{editor}} +{{line}} {{filename}}'
editCommandTemplate: '{{editor}} +{{line}} -- {{filename}}'
```
or
@ -281,7 +281,7 @@ or
```yaml
os:
editCommand: 'code'
editCommandTemplate: '{{editor}} --goto {{filename}}:{{line}}'
editCommandTemplate: '{{editor}} --goto -- {{filename}}:{{line}}'
```
`{{editor}}` in `editCommandTemplate` is replaced with the value of `editCommand`.