cyl0 / ModernX

A modern OSC UI replacement for MPV that retains the functionality of the default OSC.
544 stars 28 forks source link

Add additional buttons to skip forward/back a fixed amount #5

Closed AlpyneDreams closed 2 years ago

AlpyneDreams commented 2 years ago

This is what the chapter skip buttons used to do in the original modern. These buttons are added in addition to the chapter skip buttons so you can still skip around in a file with no chapters.

Preview:

preview

Left Mouse Button skips 5 seconds Shift+LMB can skip 1 frame RMB can skip 1 minute

These could be made optional with a config setting.

cyl0 commented 2 years ago

Looks good, though I think that this should definitely be added as an option rather than a default behaviour as this script aims to mirror the functionality of the default MPV OSC.

AlpyneDreams commented 2 years ago

For sure, I will add a config option. Do you think it should be enabled by default? I think it would be reasonable, since they are present in the default mpv osc's box layout mode.

AlpyneDreams commented 2 years ago

I'll also make the skip amount configurable

AlpyneDreams commented 2 years ago

Done!

Last questions are:

cyl0 commented 2 years ago

If that's the case then sure, we'lll have it enabled by default. As for the numbers, I think it would be better to keep them unless the jump amount has been configured to be something other than 5, 10 or 30. The icon without the number isn't very intuitavie as to what it does, so I think it's better off keeping the number even if it's small.

AlpyneDreams commented 2 years ago

Both of those are already the default as of the latest commit so you can go ahead and merge :)

cyl0 commented 2 years ago

Great, thanks for contributing!