summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRicardo Constantino <wiiaboo@gmail.com>2016-10-15 01:59:31 +0100
committerRicardo Constantino <wiiaboo@gmail.com>2016-10-15 12:27:04 +0100
commit992bdc9411544a8882f9f63f60688a19d909f5f9 (patch)
treed6c17fc5ac9d9e3843b24e249842c9b6619b75f5
parent5d3657e09288bd8d98bf2b7af2cf8d69aa35a378 (diff)
downloadmpv-992bdc9411544a8882f9f63f60688a19d909f5f9.tar.bz2
mpv-992bdc9411544a8882f9f63f60688a19d909f5f9.tar.xz
osc: show playlist/chapter list on prev/next instead of osd
-rw-r--r--player/lua/osc.lua20
1 files changed, 16 insertions, 4 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 02b21bf41f..6d5eca5a9d 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -1482,7 +1482,10 @@ function osc_init()
ne.content = "\238\132\144"
ne.visible = have_pl
ne.eventresponder["mouse_btn0_up"] =
- function () mp.commandv("playlist-prev", "weak") end
+ function ()
+ mp.commandv("playlist-prev", "weak")
+ show_message(get_playlist(), 3)
+ end
ne.eventresponder["shift+mouse_btn0_up"] =
function () show_message(get_playlist(), 3) end
ne.eventresponder["mouse_btn2_up"] =
@@ -1494,7 +1497,10 @@ function osc_init()
ne.content = "\238\132\129"
ne.visible = have_pl
ne.eventresponder["mouse_btn0_up"] =
- function () mp.commandv("playlist-next", "weak") end
+ function ()
+ mp.commandv("playlist-next", "weak")
+ show_message(get_playlist(), 3)
+ end
ne.eventresponder["shift+mouse_btn0_up"] =
function () show_message(get_playlist(), 3) end
ne.eventresponder["mouse_btn2_up"] =
@@ -1546,7 +1552,10 @@ function osc_init()
ne.enabled = have_ch
ne.content = "\238\132\132"
ne.eventresponder["mouse_btn0_up"] =
- function () mp.commandv("osd-msg", "add", "chapter", -1) end
+ function ()
+ mp.commandv("add", "chapter", -1)
+ show_message(get_chapterlist(), 3)
+ end
ne.eventresponder["shift+mouse_btn0_up"] =
function () show_message(get_chapterlist(), 3) end
ne.eventresponder["mouse_btn2_up"] =
@@ -1558,7 +1567,10 @@ function osc_init()
ne.enabled = have_ch
ne.content = "\238\132\133"
ne.eventresponder["mouse_btn0_up"] =
- function () mp.commandv("osd-msg", "add", "chapter", 1) end
+ function ()
+ mp.commandv("add", "chapter", 1)
+ show_message(get_chapterlist(), 3)
+ end
ne.eventresponder["shift+mouse_btn0_up"] =
function () show_message(get_chapterlist(), 3) end
ne.eventresponder["mouse_btn2_up"] =