summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorRyooooooga <eial5q265e5@gmail.com>2021-08-20 22:39:08 +0900
committerRyooooooga <eial5q265e5@gmail.com>2021-08-20 22:39:08 +0900
commit5ea3dc757926baf7e3cb059ffc53f7a257962331 (patch)
tree77fa4c594cd0171ae9f37c145387c48452954a91 /docs
parentac609bd37c0b879ce08f0fcff7b1c7ef09d37333 (diff)
add documentation of editCommandTemplate
Diffstat (limited to 'docs')
-rw-r--r--docs/Config.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/Config.md b/docs/Config.md
index aa68cbb64..c1d3042df 100644
--- a/docs/Config.md
+++ b/docs/Config.md
@@ -242,6 +242,24 @@ os:
Lazygit will log an error if none of these options are set.
+You can give the number of lines you are currently pointing to in the line-by-line panel.
+
+```yaml
+os:
+ editCommand: 'vim'
+ editCommandTemplate: '{{editor}} +{{line}} {{filename}}'
+```
+
+or
+
+```yaml
+os:
+ editCommand: 'code'
+ editCommandTemplate: '{{editor}} --goto {{filename}}:{{line}}'
+```
+
+`{{editor}}` in `editCommandTemplate` is replaced with `editCommand`.
+
### Recommended Config Values
for users of VSCode