Skip to content

Commit

Permalink
select.lua: print selection circles before playlist entries
Browse files Browse the repository at this point in the history
Requested in
mpv-player#14087 (comment) and
mpv-player#15031 (comment)

This is mainly useful to keep highlighting the current playlist entry
after moving the mouse.
  • Loading branch information
guidocella committed Oct 9, 2024
1 parent d92c518 commit a41b666
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions player/lua/select.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ mp.add_key_binding(nil, "select-playlist", function ()
if entry.playing then
default_item = i
end

playlist[i] = (entry.playing and "" or "") .. " " .. playlist[i]
end

if #playlist == 0 then
Expand Down

0 comments on commit a41b666

Please sign in to comment.