summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2019-05-22 19:07:14 +0200
committerFlorian Bruhin <me@the-compiler.org>2019-05-22 19:07:14 +0200
commitd875eb6ad6ea74cf312708b8f0451e2fa19258ef (patch)
tree456946763e007f456db3b05ca3b1492b53247a05
parent52ef3f24980065ea4edaacbd1eb108b1e2a03734 (diff)
downloadqutebrowser-d875eb6ad6ea74cf312708b8f0451e2fa19258ef.tar.gz
qutebrowser-d875eb6ad6ea74cf312708b8f0451e2fa19258ef.zip
Improve :enter-mode docs
-rw-r--r--doc/help/commands.asciidoc4
-rw-r--r--qutebrowser/keyinput/modeman.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/help/commands.asciidoc b/doc/help/commands.asciidoc
index 7b30368e5..b2fc99a5e 100644
--- a/doc/help/commands.asciidoc
+++ b/doc/help/commands.asciidoc
@@ -513,7 +513,9 @@ Syntax: +:enter-mode 'mode'+
Enter a key mode.
==== positional arguments
-* +'mode'+: The mode to enter.
+* +'mode'+: The mode to enter. See `:help bindings.commands` for the available modes, but note that hint/command/yesno/prompt mode
+ can't be entered manually.
+
[[fake-key]]
=== fake-key
diff --git a/qutebrowser/keyinput/modeman.py b/qutebrowser/keyinput/modeman.py
index 16c38b364..0389c9ab9 100644
--- a/qutebrowser/keyinput/modeman.py
+++ b/qutebrowser/keyinput/modeman.py
@@ -277,7 +277,9 @@ class ModeManager(QObject):
"""Enter a key mode.
Args:
- mode: The mode to enter.
+ mode: The mode to enter. See `:help bindings.commands` for the
+ available modes, but note that hint/command/yesno/prompt mode
+ can't be entered manually.
"""
try:
m = usertypes.KeyMode[mode]