From 9613deb89da6462300dcd1e245aabb2d5ebe0a34 Mon Sep 17 00:00:00 2001 From: Luca Benci Date: Wed, 18 Oct 2017 21:20:05 +0200 Subject: [PATCH] Document new `editor.command` placeholders --- doc/help/settings.asciidoc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index d5511dff0..31aff3740 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -1913,7 +1913,14 @@ Default: +pass:[-1]+ [[editor.command]] === editor.command The editor (and arguments) to use for the `open-editor` command. -`{}` gets replaced by the filename of the file to be edited. +Several placeholders are supported. Placeholders are substituted by the +respective value when executing the command. + +`{file}` gets replaced by the filename of the file to be edited. +`{line}` gets replaced by the line in which the caret is found in the text. +`{column}` gets replaced by the column in which the caret is found in the text. +`{line0}` same as `{line}`, but starting from index 0 +`{column0}` same as `{column}`, but starting from index 0 Type: <>