From fdc045d79eff6bb65821ce226d36a685db99a7b8 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Thu, 26 Dec 2024 16:34:49 +0100 Subject: [PATCH] input.conf: bind Ctrl+v to play the path in the clipboard --- DOCS/man/mpv.rst | 5 +++++ etc/input.conf | 1 + 2 files changed, 6 insertions(+) diff --git a/DOCS/man/mpv.rst b/DOCS/man/mpv.rst index 14989b284c98f..95ee33b6d1bc6 100644 --- a/DOCS/man/mpv.rst +++ b/DOCS/man/mpv.rst @@ -242,6 +242,11 @@ F8 F9 Show the list of audio and subtitle streams. +Ctrl+v + Append the file or URL in the clipboard to the playlist. If nothing is + currently playing, it is played immediately. Only works on platforms that + support the ``clipboard`` property. + i and I Show/toggle an overlay displaying statistics about the currently playing file such as codec, framerate, number of dropped frames and so on. See diff --git a/etc/input.conf b/etc/input.conf index ed05bbd4148c6..3e058274d24aa 100644 --- a/etc/input.conf +++ b/etc/input.conf @@ -171,6 +171,7 @@ #l ab-loop # set/clear A-B loop points #L cycle-values loop-file "inf" "no" # toggle infinite looping #ctrl+c quit 4 +#Ctrl+v loadfile ${clipboard/text} append-play; show-text 'Appended ${clipboard/text}' # append the copied path #DEL script-binding osc/visibility # cycle OSC visibility between never, auto (mouse-move) and always #ctrl+h cycle-values hwdec "no" "auto-safe" # toggle hardware decoding #F8 show-text ${playlist} # show the playlist