summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-08 19:27:45 +0200
committerwm4 <wm4@nowhere>2013-07-08 19:28:52 +0200
commit15a5422dd2ba18d10c598f91b8cdae86269b2af1 (patch)
treed102504505a0a3ec2047946871e7c40bc02100b7 /DOCS
parent09250d9921304ae988de756fa9cb33d86758b519 (diff)
downloadmpv-15a5422dd2ba18d10c598f91b8cdae86269b2af1.tar.bz2
mpv-15a5422dd2ba18d10c598f91b8cdae86269b2af1.tar.xz
input: allow binding multiple commands to a key
Separate the commands with ';'.
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/en/input.rst11
1 files changed, 10 insertions, 1 deletions
diff --git a/DOCS/man/en/input.rst b/DOCS/man/en/input.rst
index 7dab3bb1b4..c9adc7a4ca 100644
--- a/DOCS/man/en/input.rst
+++ b/DOCS/man/en/input.rst
@@ -29,7 +29,7 @@ must kill **mpv** externally to make it exit.)
General Input Command Syntax
----------------------------
-``[Shift+][Ctrl+][Alt+][Meta+]<key> [{<section>}] [<prefixes>] <command> (<argument>)*``
+``[Shift+][Ctrl+][Alt+][Meta+]<key> [{<section>}] [<prefixes>] <command> (<argument>)* [; <command>]``
Newlines always start a new binding. ``#`` starts a comment (outside of quoted
string arguments). To bind commands to the ``#`` key, ``SHARP`` can be used.
@@ -46,6 +46,15 @@ C-style escaping can be used.
Optional arguments can be skipped with ``-``.
+You can bind multiple commands to one key. For example:
+
+| a show_text "command 1" ; show_text "command 2"
+
+Note that some magic is disabled for keys: seek commands inside lists are not
+coalesced (seeking will appear slower), and no check is done for abort commands
+(so these commands can't be used to abort playback if the network cache is
+stuck).
+
List of Input Commands
----------------------