summaryrefslogtreecommitdiffstats
path: root/DOCS/man/input.rst
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2024-01-14 21:36:32 +0100
committerDudemanguy <random342@airmail.cc>2024-02-04 15:12:02 +0000
commit4ab521f08010329701885d4e383a6de77589a389 (patch)
treec1a499c1778351b837c072cd01a75af113cd5312 /DOCS/man/input.rst
parent68e3412feeab5c8b0c70d5799c3721532af85c35 (diff)
downloadmpv-4ab521f08010329701885d4e383a6de77589a389.tar.bz2
mpv-4ab521f08010329701885d4e383a6de77589a389.tar.xz
command: add load-input-conf
This can be used to auto reload the input configuration file, e.g. in vim: autocmd BufWritePost ~/.config/mpv/input.conf silent !echo load-input-conf %:p | socat - /tmp/mpvsocket Partially fixes #6362. Additionally this can be used as a replacement for deprecated input sections if they are ever actually removed. For example, if you want to define different bindings for images, you can load-input-conf an input.conf for images, and load the original again when switching to a video. Though currently you would have to redefine builtin bindings that were overwritten with image ones in the default input.conf.
Diffstat (limited to 'DOCS/man/input.rst')
-rw-r--r--DOCS/man/input.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst
index 74c3793bcf..d0d5970176 100644
--- a/DOCS/man/input.rst
+++ b/DOCS/man/input.rst
@@ -1341,6 +1341,11 @@ Input Commands that are Possibly Subject to Change
was already included, its previous options are not reset before it is
reparsed.
+``load-input-conf <filename>``
+ Load an input configuration file, similar to the ``--input-conf`` option. If
+ the file was already included, its previous bindings are not reset before it
+ is reparsed.
+
``load-script <filename>``
Load a script, similar to the ``--script`` option. Whether this waits for
the script to finish initialization or not changed multiple times, and the