From b4109d21e32fe3d0213b7cf17fd0429953517dc7 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 19 Mar 2019 07:40:59 +0100 Subject: Adjust docs for --mode --- doc/help/commands.asciidoc | 5 ++--- qutebrowser/config/configcommands.py | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc index 2d71a28c1..f0328f2c6 100644 --- a/doc/help/commands.asciidoc +++ b/doc/help/commands.asciidoc @@ -165,8 +165,7 @@ If no command is given, show the current binding for the given key. Using :bind * +'command'+: The command to execute, with optional args. ==== optional arguments -* +*-m*+, +*--mode*+: A comma-separated list of modes to bind the key in (default: `normal`). See `:help bindings.commands` for the - available modes. +* +*-m*+, +*--mode*+: The mode to bind the key in (default: `normal`). See `:help bindings.commands` for the available modes. * +*-d*+, +*--default*+: If given, restore a default binding. @@ -1425,7 +1424,7 @@ Unbind a keychain. ==== optional arguments -* +*-m*+, +*--mode*+: A mode to unbind the key in (default: `normal`). See `:help bindings.commands` for the available modes. +* +*-m*+, +*--mode*+: The mode to unbind the key in (default: `normal`). See `:help bindings.commands` for the available modes. [[undo]] diff --git a/qutebrowser/config/configcommands.py b/qutebrowser/config/configcommands.py index 2eec817f8..d674401e1 100644 --- a/qutebrowser/config/configcommands.py +++ b/qutebrowser/config/configcommands.py @@ -152,9 +152,8 @@ class ConfigCommands: key: The keychain to bind. Examples of valid keychains are `gC`, `` or `a`. command: The command to execute, with optional args. - mode: A comma-separated list of modes to bind the key in - (default: `normal`). See `:help bindings.commands` for the - available modes. + mode: The mode to bind the key in (default: `normal`). See `:help + bindings.commands` for the available modes. default: If given, restore a default binding. """ if key is None: @@ -193,7 +192,7 @@ class ConfigCommands: Args: key: The keychain to unbind. See the help for `:bind` for the correct syntax for keychains. - mode: A mode to unbind the key in (default: `normal`). + mode: The mode to unbind the key in (default: `normal`). See `:help bindings.commands` for the available modes. """ with self._handle_config_error(): -- cgit v1.2.3-54-g00ecf