maxcurzi / tplay

A terminal ASCII media player. View images, gifs, videos, webcam, YouTube, etc.. directly in the terminal as ASCII art.
MIT License
208 stars 13 forks source link

Add "rewind on keypress" #39

Open maxcurzi opened 3 months ago

maxcurzi commented 3 months ago

Is your feature request related to a problem? Please describe. From v0.5.0 the playback can restart/loop. This is currently controlled by a command line flag. It would be nice to be able to restart the playback with a keypress.

Describe the solution you'd like Map the number "0" to the rewind controls. When the user presses "0" the rewind command is sent to the video/audio/pipeline etc

Describe alternatives you've considered Using "r" seem intuitive, or "home"... although "R" could be used later on to rewind few seconds...

Additional context n/a