-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
{select,osc}.lua: add a miscellaneous menu #15499
base: master
Are you sure you want to change the base?
Conversation
@@ -427,3 +427,29 @@ mp.add_key_binding(nil, "show-properties", function () | |||
end, | |||
}) | |||
end) | |||
|
|||
mp.add_key_binding(nil, "menu", function () | |||
local menu = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this list all select? Especially why vid select is hidden?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I saw uosc doesn't have it so I didn't if it's worth adding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I saw uosc doesn't have it so I didn't if it's worth adding.
Of course they has it. In UOSC each button is dynamic and show only when needed. See https://github.com/tomasklaen/uosc/blob/6a1c0e9c6e7e9e43cda1c1ea3e44a911fae45927/src/uosc.conf#L83C1-L83C211 specifically, <has_many_video>video
.
This menu could do this too, to not show items that goes nowhere.
Download the artifacts for this pull request: |
0a415cb
to
b6e1d02
Compare
Add a generic menu to bar layouts to provide discoverability for the select menus to users who don't realize you can right click OSC buttons. There's no space to add it in box layout.
Add a generic menu to bar layouts to provide discoverability for the select menus to users who don't realize you can right click OSC buttons.
There's no space to add it in box layout.
We just gotta figure out how to add a proper icon instead of ☰. Maybe we can extract this from Symbola like in db3754d. Also we could add more entries later like Open file or Edit config file.