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

command_palette.lua integration #35

Closed
stax76 opened this issue Aug 29, 2024 · 3 comments
Closed

command_palette.lua integration #35

stax76 opened this issue Aug 29, 2024 · 3 comments

Comments

@stax76
Copy link

stax76 commented Aug 29, 2024

I added API support to my command palette script, which you can find here:

https://github.com/stax76/mpv-scripts

Integration with your recent-menu script would be great.

The API is uosc compatible, there isn't full uosc API support, it's limited to what your script uses.

It can be called like so:

local json = utils.format_json(menu)
mp.commandv('script-message-to',
            'command_palette',
            'show-command-palette-json', json)

I suggest that all integrations can be invoked with a command.

script-message-to recentmenu show-recent-menu select
script-message-to recentmenu show-recent-menu uosc
script-message-to recentmenu show-recent-menu command-palette
@natural-harmonia-gropius
Copy link
Owner

Thank you. here you are: #36

A request, I need command_palette to broadcast 'command-palette-version' so that fallbacks in open_menu() can work.

@stax76
Copy link
Author

stax76 commented Aug 30, 2024

Thanks, I added version support as message and user-data and documented everything in the readme file, it's already committed to the main branch because I'm not very good at using git.

Everything worked in my tests.

stax76/mpv-scripts@59661db

stax76/mpv-scripts@1bcd1b6

@natural-harmonia-gropius
Copy link
Owner

6e8d52b

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

No branches or pull requests

2 participants