Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osc.lua: update mouse bindings #15497

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Conversation

guidocella
Copy link
Contributor

osc.lua: open the playlist selector when right clicking playlist arrows

  • It makes more sense to select a playlist entry from the buttons that navigate the playlist than from the title
  • Provides different bindings for right and middle click
  • Mirrors chapter button bindings

osc.lua: show the full path when right clicking the title

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.

DOCS/man/osc: sort mouse bindings consistently

Always list in the order left shift+L middle right click.

Copy link

github-actions bot commented Dec 12, 2024

Download the artifacts for this pull request:

Windows
macOS

- It makes more sense to select a playlist entry from the buttons that
  navigate the playlist than from the title
- Provides different bindings for right and middle click
- Mirrors chapter button bindings
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.
Always list in the order left shift+L middle right click.

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}",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be $path or $stream-path or $stream-open-file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never heard of stream-path, docs say it's useless. stream-open-filename is the huge EDL string when playing ytdl_hook URLs I don't know why you would want to see that instead of the normal youtube URL.

@kasper93 kasper93 merged commit dbb3291 into mpv-player:master Dec 12, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants