From 15a5422dd2ba18d10c598f91b8cdae86269b2af1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 8 Jul 2013 19:27:45 +0200 Subject: input: allow binding multiple commands to a key Separate the commands with ';'. --- DOCS/man/en/input.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'DOCS') 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+] [{
}] [] ()*`` +``[Shift+][Ctrl+][Alt+][Meta+] [{
}] [] ()* [; ]`` 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 ---------------------- -- cgit v1.2.3