memo icon indicating copy to clipboard operation
memo copied to clipboard

Show up history when launching mpv

Open da3dsoul1 opened this issue 2 years ago • 3 comments

I have a feature request to show history menu when launching mpv, is it possible with your script?

Alternative script simplehistory does this by default https://github.com/Eisa01/mpv-scripts

da3dsoul1 avatar Sep 01 '23 20:09 da3dsoul1

Create a new lua file in your config with the following content

mp.command('script-binding memo/memo-history')

christoph-heinrich avatar Oct 17 '23 22:10 christoph-heinrich

I think the issue is about opening the history if no file is selected? That's what SimpleHistory does.

po5 avatar Oct 18 '23 00:10 po5

In that case

mp.observe_property('idle-active', 'bool', function(_, val)
    if not val then return end
    mp.command('script-binding memo/memo-history')
end)

christoph-heinrich avatar Oct 18 '23 00:10 christoph-heinrich

Can be achieved with the following auto-profies. I may add an option for this after the search refactor as I don't like the behavior when the menu is already open.

[memo-idle]
profile-cond=idle_active
input-commands=script-binding memo-next

[memo-active]
profile-cond=not idle_active
input-commands=

po5 avatar Jul 02 '24 18:07 po5