diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 69a25e177..a1ddc5429 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -1961,9 +1961,7 @@ Default: +pass:[-1]+ [[editor.command]] === editor.command The editor (and arguments) to use for the `open-editor` command. -Several placeholders are supported. Placeholders are substituted by the -respective value when executing the command. - +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. @@ -1976,7 +1974,9 @@ Default: - +pass:[gvim]+ - +pass:[-f]+ -- +pass:[{}]+ +- +pass:[{file}]+ +- +pass:[-c]+ +- +pass:[normal {line}G{column0}l]+ [[editor.encoding]] === editor.encoding diff --git a/qutebrowser/config/configdata.yml b/qutebrowser/config/configdata.yml index 17e1c75b0..0f2a439d3 100644 --- a/qutebrowser/config/configdata.yml +++ b/qutebrowser/config/configdata.yml @@ -770,8 +770,20 @@ editor.command: desc: >- The editor (and arguments) to use for the `open-editor` command. + 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. + + editor.encoding: type: Encoding default: utf-8