memo icon indicating copy to clipboard operation
memo copied to clipboard

Add support for mpv-menu-plugin

Open Youxikong opened this issue 1 year ago • 2 comments

Dear po5, Thanks for your great script, it helps a lot to me. I'm using memo with another mpv c-plugin named mpv-menu-plugin (Windows only), it is useful too. I think it will be better to intergrate these two mpv plugins, so I modified memo myself. I'm a mpv begginer, my code must be not so good. 😊

A new line should be added to input.conf like this pattern and mpv-menu-plugin will automatically update its content:

_                  ignore                           #menu: memo-history #@memo

Here is a screenshot. image

Youxikong avatar Feb 07 '24 13:02 Youxikong

Thanks for the contribution, this is cool!
I am not able to test this until next time I boot into Windows, some thoughts:

For feature parity with the uosc and vanilla menus, is there any way to display a text input dialog? (for search)
I looked at the Scripting page but it doesn't seem possible yet.
This is more of a feature request for that other project but I will gladly merge if this functionality can be implemented.

As far as I understand, the menu always "exists", and is only displayed once the user right clicks?
I guess implementing search may not be practical with this model, curious what you think. Handling of multiple pages may also not be possible.

po5 avatar Feb 08 '24 01:02 po5

Now it gives native context menu and native file dialog support, but no text input dialog. So search panel couldn't be implemented at present.

The plugin will register a keybinding, is only displayed once user right clicks, like other video players.

Youxikong avatar Feb 08 '24 02:02 Youxikong