diff options
author | Florian Bruhin <me@the-compiler.org> | 2019-03-19 07:40:59 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2019-03-19 07:41:13 +0100 |
commit | b4109d21e32fe3d0213b7cf17fd0429953517dc7 (patch) | |
tree | 26be5b71ddcbc56d95846c48f4f57892c7dcb811 | |
parent | 309d78ad04369b0de2d731d5e2ef8b1ba6259645 (diff) | |
download | qutebrowser-b4109d21e32fe3d0213b7cf17fd0429953517dc7.tar.gz qutebrowser-b4109d21e32fe3d0213b7cf17fd0429953517dc7.zip |
Adjust docs for --mode
-rw-r--r-- | doc/help/commands.asciidoc | 5 | ||||
-rw-r--r-- | 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`, `<Ctrl-X>` or `<Ctrl-C>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(): |