History

osc.lua: move title mbtn script-opts below playlist_next's

Sort mbtn script-opts according to how they are shown to the user in bar layout instead of how they are defined in osc_init().

Guido Cella committed 1 year ago

Commit f4a35a01 parent 53554f52 files · +10 −10Browse files

Unified · Split

2 files
  1. DOCS/man/osc.rst +6 −6
  2. player/lua/osc.lua +4 −4
DOCS/man/osc.rst+6−6
@@ -501,12 +501,6 @@ Configurable Options · 500 unmodified lines
501501 The following options configure what commands are run when the buttons are
502502 clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``.
503503
504−``title_mbtn_left_command=script-binding stats/display-page-5``
505−
506−``title_mbtn_mid_command=show-text ${filename}``
507−
508−``title_mbtn_right_command=script-binding select/select-playlist; script-message-to osc osc-hide``
509−
510504 ``playlist_prev_mbtn_left_command=playlist-prev; show-text ${playlist} 3000``
511505
512506 ``playlist_prev_mbtn_mid_command=show-text ${playlist} 3000``
@@ -519,6 +513,12 @@ clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``. · 6 unmodified lines
519513
520514 ``playlist_next_mbtn_right_command=show-text ${playlist} 3000``
521515
516+``title_mbtn_left_command=script-binding stats/display-page-5``
517+
518+``title_mbtn_mid_command=show-text ${filename}``
519+
520+``title_mbtn_right_command=script-binding select/select-playlist; script-message-to osc osc-hide``
521+
522522 ``play_pause_mbtn_left_command=cycle pause``
523523
524524 ``play_pause_mbtn_mid_command=``
player/lua/osc.lua+4−4
@@ -71,10 +71,6 @@ local user_opts = { · 70 unmodified lines
7171
7272 -- luacheck: push ignore
7373 -- luacheck: max line length
74− title_mbtn_left_command = "script-binding stats/display-page-5",
75− title_mbtn_mid_command = "show-text ${filename}",
76− title_mbtn_right_command = "script-binding select/select-playlist; script-message-to osc osc-hide",
77−
7874 playlist_prev_mbtn_left_command = "playlist-prev",
7975 playlist_prev_mbtn_mid_command = "show-text ${playlist} 3000",
8076 playlist_prev_mbtn_right_command = "show-text ${playlist} 3000",
@@ -83,6 +79,10 @@ local user_opts = { · 2 unmodified lines
8379 playlist_next_mbtn_mid_command = "show-text ${playlist} 3000",
8480 playlist_next_mbtn_right_command = "show-text ${playlist} 3000",
8581
82+ title_mbtn_left_command = "script-binding stats/display-page-5",
83+ title_mbtn_mid_command = "show-text ${filename}",
84+ title_mbtn_right_command = "script-binding select/select-playlist; script-message-to osc osc-hide",
85+
8686 play_pause_mbtn_left_command = "cycle pause",
8787 play_pause_mbtn_mid_command = "",
8888 play_pause_mbtn_right_command = "cycle-values loop-file inf no",

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t