mpv-scripts icon indicating copy to clipboard operation
mpv-scripts copied to clipboard

Seek-to.lua Allow Pasting In Timestamps

Open AziRizvi opened this issue 2 years ago • 5 comments

It'd be great if we could have the ability to paste timestamps using ctrl+v in when the script is activated with its keybind and the osd seek to message is displayed.

AziRizvi avatar Dec 19 '23 00:12 AziRizvi

There's a fork made by @dexeonify that implemented this already, and also fixed script crashing when pressing backspace while last digit is selected.

I've also just uploaded my own changes to that fork, that address some of the issues i still had that were either inherited from original seek-to.lua or the fork itself:

  • Shifting message width when selecting pairs of 1's.
  • Selected digit indicator not helping when user uses osd-bold=yes.
  • Not using Ctrl+V for pasting timestamps.

And some other more or less significant changes: seek-to.lua

Sneakpeakcss avatar Dec 19 '23 17:12 Sneakpeakcss

There's a fork made by @dexeonify that implemented this already, and also fixed script crashing when pressing backspace while last digit is selected.

I've also just uploaded my own changes to that fork, that address some of the issues i still had that were either inherited from original seek-to.lua or the fork itself:

  • Shifting message width when selecting pairs of 1's.
  • Selected digit indicator not helping when user uses osd-bold=yes.
  • Not using Ctrl+V for pasting timestamps.

And some other more or less significant changes: seek-to.lua

I didn't know about the fork, thanks! I've gone ahead and grabbed your fork.

AziRizvi avatar Dec 20 '23 00:12 AziRizvi