Skip to content

Commit

Permalink
osc.lua: show the full path when right clicking the title
Browse files Browse the repository at this point in the history
Right clicking playlist arrows already opens the playlist selector so
bind something else to right clicking the title. Make it show the full
path which is useful but not bound anywhere on either the keyboard or
the OSC.
  • Loading branch information
guidocella committed Dec 12, 2024
1 parent 97380dd commit 4c6ad7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DOCS/man/osc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ title
============= ================================================
left-click show file and track info
middle-click show the filename
right-click open the playlist selector
right-click show the path
============= ================================================

cache
Expand Down Expand Up @@ -517,7 +517,7 @@ clicked. ``mbtn_mid`` commands are also triggered with ``shift+mbtn_left``.

``title_mbtn_mid_command=show-text ${filename}``

``title_mbtn_right_command=script-binding select/select-playlist; script-message-to osc osc-hide``
``title_mbtn_right_command=show-text ${path}``

``play_pause_mbtn_left_command=cycle pause``

Expand Down
2 changes: 1 addition & 1 deletion player/lua/osc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ local user_opts = {

title_mbtn_left_command = "script-binding stats/display-page-5",
title_mbtn_mid_command = "show-text ${filename}",
title_mbtn_right_command = "script-binding select/select-playlist; script-message-to osc osc-hide",
title_mbtn_right_command = "show-text ${path}",

play_pause_mbtn_left_command = "cycle pause",
play_pause_mbtn_mid_command = "",
Expand Down

0 comments on commit 4c6ad7b

Please sign in to comment.