From 776e2893a23c9cd139c406e15c6ec56ebba48b01 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 23 Jun 2013 02:31:51 +0200 Subject: manpage: document input sections --- DOCS/man/en/input.rst | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'DOCS') diff --git a/DOCS/man/en/input.rst b/DOCS/man/en/input.rst index 440d1a655e..e904e0b86b 100644 --- a/DOCS/man/en/input.rst +++ b/DOCS/man/en/input.rst @@ -31,7 +31,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. @@ -39,6 +39,8 @@ string arguments). To bind commands to the ``#`` key, ``SHARP`` can be used. is either the literal character the key produces (ASCII or unicode character), or a symbol name. +
(braced with ``{`` and ``}``) is the input section for this command. + Arguments are separated by whitespace. This applies even to string arguments. For this reason, string arguments should be quoted with ``"``. Inside quotes, C style escaping can be used. @@ -298,6 +300,24 @@ settings. Undocumented prefixes: pausing, pausing_keep, pausing_toggle, pausing_keep_force. (Should these be made official?) +Input sections +-------------- + +Input sections group a set of bindings, and enable or disable them at once. +In ``input.conf``, each key binding is assigned to an input section, rather +than actually having explicit text sections. + +Also see ``enable_section`` and ``disable_section`` commands. + +Predefined bindings: + +default + Bindings without input section are implicitly assigned to this section. It + is enabled by default during normal playback. +encode + Section which is active in encoding mode. It is enabled exclusively, so + that bindings in the ``default`` sections are ignored. + Properties ---------- -- cgit v1.2.3