deadbeef icon indicating copy to clipboard operation
deadbeef copied to clipboard

Hot keys for time navigation

Open artenax opened this issue 2 years ago • 8 comments

Hello. I was surprised to find that deadbeef has no hotkeys for time navigation. Implement this, please. For any reasonable time. Audacious has one, but it requires customization.

What is it for? Imagine, for example, a blind or visually impaired person listening to audiobooks (several hours long) and wants to skip already listened before. Or just a person lying on a sofa with headphones, keyboard next to him and a long way to reach the mouse. There are hot keys to switch to the next/previous track, but for navigation within the track there is none. But the track can be large, in the case of audiobooks.

artenax avatar Feb 18 '23 21:02 artenax

There are some configurable actions in the preferences, which can be assigned to hotkeys: They work at granularity of 1sec, 5sec, 1% and 5%, forward or backward. I'm not sure whether this is what you are looking for though. A little hard to find, but they are under Main/Playback category

image

Oleksiy-Yakovenko avatar Feb 18 '23 21:02 Oleksiy-Yakovenko

Yes, that's it. Thank you. I hadn't seen these settings before. 1% and 5% are good values.

By the way, in Audacious only the back/forward keys work, which rewind the files (lasting several hours) rather slowly. foobar lets set an arbitrary time (or there are some steps, I can't remember, but it requires customization). And video players like VLC.

artenax avatar Feb 18 '23 21:02 artenax

There is a plugin that adds 2 extra seek hotkeys with configurable second/percentage value: https://github.com/kuba160/ddb_cust_seek

kuba160 avatar Feb 18 '23 21:02 kuba160

kuba160 Thanks. I compiled the plugin, but how do I switch to time mode only? Or only custom percentages are supported?

artenax avatar Feb 18 '23 22:02 artenax

Switching the checkbox off in plugin settings above value configuration should seek given amount of seconds, does it not work as intended?

kuba160 avatar Feb 18 '23 22:02 kuba160

I have these settings:

01

02

artenax avatar Feb 19 '23 00:02 artenax

Checkbox "Preset 1: Seconds/Percentage" switches between time mode (unchecked) and percentage mode (checked). You have 2 independent presets that can be configured separately. I updated the plugin to use the drop-down menu instead, I don't know why I didn't do that in first place. Hopefully this clears the confusion.

kuba160 avatar Feb 19 '23 00:02 kuba160

kuba160 Yes, I get it now, it works. Thanks.

03

artenax avatar Feb 19 '23 14:02 artenax