From 833e2f254efed65157669274444024913bf37b28 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Wed, 21 Jan 2026 09:43:23 +0100 Subject: [PATCH] select.lua: link to mpv's IRC channel in the menu Add a menu entry that opens mpv's IRC channel so users can quickly ask support questions. --- DOCS/man/select.rst | 3 +++ player/lua/select.lua | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/DOCS/man/select.rst b/DOCS/man/select.rst index d1df27b4d5..45ea959556 100644 --- a/DOCS/man/select.rst +++ b/DOCS/man/select.rst @@ -150,6 +150,9 @@ Available script bindings are: ``open-docs`` Open mpv's online documentation in the browser. +``open-chat`` + Open mpv's chat in the browser. + ``menu`` Show a menu with miscellaneous entries. diff --git a/player/lua/select.lua b/player/lua/select.lua index 222b1e37b0..869c667c41 100644 --- a/player/lua/select.lua +++ b/player/lua/select.lua @@ -679,6 +679,10 @@ mp.add_key_binding(nil, "open-docs", function () system_open("https://mpv.io/manual/") end) +mp.add_key_binding(nil, "open-chat", function () + system_open("https://web.libera.chat/#mpv") +end) + mp.add_key_binding(nil, "menu", function () local sub_track_count = 0 local audio_track_count = 0 @@ -724,6 +728,7 @@ mp.add_key_binding(nil, "menu", function () {"Edit key bindings", "script-binding select/edit-input-conf", true}, {"Help", "script-binding stats/display-page-4-toggle", true}, {"Online documentation", "script-binding select/open-docs", true}, + {"Support", "script-binding select/open-chat", true}, } local labels = {}