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

{select,osc}.lua: add a miscellaneous menu #15499

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guidocella
Copy link
Contributor

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.

screenshot

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.

@@ -427,3 +427,29 @@ mp.add_key_binding(nil, "show-properties", function ()
end,
})
end)

mp.add_key_binding(nil, "menu", function ()
local menu = {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link

github-actions bot commented Dec 12, 2024

Download the artifacts for this pull request:

Windows
macOS

@guidocella guidocella force-pushed the menu branch 6 times, most recently from 0a415cb to b6e1d02 Compare December 16, 2024 10:51
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.
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