From 3fcc27636a7892c7c6449501bb7eee672c9b7c1d Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 5 Nov 2015 21:42:29 +0100 Subject: [PATCH] Improve documentation for general -> editor. --- doc/help/settings.asciidoc | 3 ++- qutebrowser/config/configdata.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/help/settings.asciidoc b/doc/help/settings.asciidoc index 24536dbf5..f0262b5c1 100644 --- a/doc/help/settings.asciidoc +++ b/doc/help/settings.asciidoc @@ -345,7 +345,8 @@ Default: +pass:[15000]+ === editor The editor (and arguments) to use for the `open-editor` command. -Use `{}` for the filename. The value gets split like in a shell, so you can use `"` or `'` to quote arguments. +The arguments get split like in a shell, so you can use `"` or `'` to quote them. +`{}` gets replaced by the filename of the file to be edited. Default: +pass:[gvim -f "{}"]+ diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index 6f9d7c82d..7ec36845b 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -165,8 +165,9 @@ def data(readonly=False): SettingValue(typ.ShellCommand(placeholder=True), 'gvim -f "{}"'), "The editor (and arguments) to use for the `open-editor` " "command.\n\n" - "Use `{}` for the filename. The value gets split like in a " - "shell, so you can use `\"` or `'` to quote arguments."), + "The arguments get split like in a shell, so you can use `\"` or " + "`'` to quote them.\n" + "`{}` gets replaced by the filename of the file to be edited."), ('editor-encoding', SettingValue(typ.Encoding(), 'utf-8'),