select.lua: add online documentation menu entry

This commit is contained in:
Guido Cella authored and Kacper Michajłow committed 2025-09-20 18:10:23 +02:00
1 parent 7c1a4acdb2
commit f147b133f0
2 files changed
+8

No files matched your search

+3
View File
@@ -135,6 +135,9 @@ Available script bindings are:
Open ``input.conf`` in the system text editor, creating it if it doesn't
already exist.
``open-docs``
Open mpv's online documentation in the browser.
``menu``
Show a menu with miscellaneous entries.
+5
View File
@@ -678,6 +678,10 @@ mp.add_key_binding(nil, "edit-input-conf", function ()
edit_config_file("input.conf")
end)
mp.add_key_binding(nil, "open-docs", function ()
system_open("https://mpv.io/manual/")
end)
mp.add_key_binding(nil, "menu", function ()
local sub_track_count = 0
local audio_track_count = 0
@@ -721,6 +725,7 @@ mp.add_key_binding(nil, "menu", function ()
{"Edit config file", "script-binding select/edit-config-file", true},
{"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},
}
local labels = {}