diff options
author | Mark Kopenga <mkopenga@gmail.com> | 2021-08-23 10:15:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-23 10:15:38 +0200 |
commit | 487ad196a7c03d8cb3e0abc41dea42dd96db8a62 (patch) | |
tree | 589f36ab1814b4242e44d47fa398132bb958ad89 /docs | |
parent | 508af269fbc255162d8a01c9788dae9445db0393 (diff) | |
parent | 44140adb921d7891778deb7f1aa2f813622302f4 (diff) |
Merge pull request #1413 from Ryooooooga/feature/edit-line
Make os.editCommand customizable using template
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Config.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/Config.md b/docs/Config.md index c2565ae93..724f35334 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -65,6 +65,7 @@ git: parseEmoji: false os: editCommand: '' # see 'Configuring File Editing' section + editCommandTemplate: '{{editor}} {{filename}}' openCommand: '' refresher: refreshInterval: 10 # file/submodule refresh interval in seconds @@ -241,6 +242,24 @@ os: Lazygit will log an error if none of these options are set. +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}}' +``` + +or + +```yaml +os: + editCommand: 'code' + editCommandTemplate: '{{editor}} --goto {{filename}}:{{line}}' +``` + +`{{editor}}` in `editCommandTemplate` is replaced with the value of `editCommand`. + ### Recommended Config Values for users of VSCode |