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.
This commit is contained in:
Guido Cella authored and Kacper Michajłow committed 2026-01-21 11:27:07 +01:00
1 parent 491802918e
commit 833e2f254e
2 files changed
+8

No files matched your search

+3
View File
@@ -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.
+5
View File
@@ -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 = {}