From 5ea3dc757926baf7e3cb059ffc53f7a257962331 Mon Sep 17 00:00:00 2001 From: Ryooooooga Date: Fri, 20 Aug 2021 22:39:08 +0900 Subject: [PATCH] add documentation of editCommandTemplate --- docs/Config.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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