summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/Config.md19
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