Document new editor.command placeholders

This commit is contained in:
Luca Benci 2017-10-18 21:20:05 +02:00
parent 0436526203
commit 9613deb89d

View File

@ -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: <<types,ShellCommand>>