ymuse icon indicating copy to clipboard operation
ymuse copied to clipboard

[Feature Request] Drag-and-Drop within Queue

Open dayfuaim opened this issue 3 years ago • 5 comments

It will be very helpful if this feature will be implemented. :)

Currently if I want to insert some Tracks/Albums in the middle of the Queue, I have to

  1. remove everything after SOME point
  2. insert what I want
  3. then add the removed ones back

It IS not usable/comfortable.

Thanks for your work. :)

dayfuaim avatar Mar 02 '21 12:03 dayfuaim

Yes, this is already on my TODO list.

yktoo avatar Mar 03 '21 08:03 yktoo

I tried to do it, how hard could it be? After 8 hours, i couldn't get not even close. I don't have sufficient experience with GTK yet. Hope someone better can get it done...

imsamuka avatar Jul 11 '22 20:07 imsamuka

GTK is fairly well documented nowadays, but its Go bindings are a bit of trial-and-error. I had a quick go at the item and immediately stumbled upon the fact the selection gets reset as soon as you press the mouse button.

This behaviour gets circumvented for a right click by simply preventing event propagation, but that might not work for drag-n-drop as it's probably to be initiated during propagation. So I stopped there for now, waiting for the moment the time permits.

yktoo avatar Jul 15 '22 13:07 yktoo

Having Drag&Drop in the queue would be really nice.

Would it be easier to implement when it is initiated not with a left click&hold, but when you have to hold a modifier key like for example the Alt key and then do your left click, hold and drag?

gvegidy avatar Sep 11 '22 11:09 gvegidy

@gvegidy This won't change much in terms of complexity of the task. Moreover, click + modifier key is commonly mapped to various actions in DEs (like drag window or extend selection). The standard UX pattern for moving items is a simple click-and-drag.

yktoo avatar Sep 15 '22 15:09 yktoo

Have you considered adding simple cut and paste on the selection? It would presumably be easier to implement presumably. Alternatively one could in linux at least dump the current queue to a playlist and evaluate $EDITOR playlistfile and update when it returns

michaelmrose avatar Aug 05 '23 16:08 michaelmrose

Alternatively one could in linux at least dump the current queue to a playlist and evaluate $EDITOR playlistfile and update when it returns

Well this can basically be achieved with a script containing a couple of mpc calls and $EDITOR in between :grin:

yktoo avatar Aug 06 '23 08:08 yktoo