Moving more than one playlist entry

Asked by ShTiRLiC

Is it possible to move more than one song in the playlist at the time? When I need to group some tracks together I have to move them one by one which is not convenient. This is the only thing (I think) GMPC needs. To group tracks fast I launch sonata now (it can move many selected songs at once but has no support for configurable hotkeys - that's why I prefer GMPC) but it would be nice to do this in GMPC. Also last.fm scrobbler plugin for gmpc would be very useful (now I use standalone scrobbler running as daemon and although it works smoothly such fucntion in GMPC would be easier to use and configure). Thank you in advance!

Question information

Language:
English Edit question
Status:
Solved
For:
Gnome Music Player Client Edit question
Assignee:
No assignee Edit question
Solved by:
Qball Cow
Solved:
Last query:
Last reply:
Revision history for this message
Best Qball Cow (qball-qballcow) said :
#1

1. I will implement this later.. (should look how sontata does it). I never did it because I hoped gtk would implement it. (if gtk supports it, gmpc will).

2. I won't write a scrobbler plugin for gmpc.. because mpd can be playing while gmpc is not open, multiple gmpc can be running etc.
With mpd a standalone daemon is more logic.

Revision history for this message
ShTiRLiC (shtirlic) said :
#2

I don't think this is only the GTK issue. AFAIK, mpd could only move one item per request. I read mpc --help and telnet'ed to mpd to check this out. So there should be a loop for moving several tracks (I don't know whether it is in GMPC, sorry). When I drag any items in GMPC the selection is set to the only item under cursor. I haven't learn GTK+ yet (have only Windows GUI experience) so I won't suggest you where to look you'd know it much better =)

Thanks for quick answer and waiting for implementing such dragging!

Revision history for this message
Qball Cow (qball-qballcow) said :
#3

It is an gtk issue. What mpd does behind the screen is not important. GTK does not support (only using dirty hacks) the moving of multiple rows in it's treeview implementation.
So a foolproof implementation is gonna be tricky, there used to be a hack in gmpc, but when I rewrote parts to have better code re-use. When I did that I removed the hack because it was nasty and bug ridden..
so I might make a "copy/paste" solution.. where you select, do cut/copy, then paste it where you want.

Revision history for this message
Qball Cow (qball-qballcow) said :
#4

Can you make a bugreport for it?

Revision history for this message
ShTiRLiC (shtirlic) said :
#5

Hmm, bugreport for what exactly? GMPC or GTK+? I don't think it's a bug just a lack of functionality...

Revision history for this message
Qball Cow (qball-qballcow) said :
#6

gmpc. feature request should also be done on the bugtracker.. (where else.)

Revision history for this message
ShTiRLiC (shtirlic) said :
#7

Oh, sorry, I'm new on launchpad (registered for this question). But in bugs section I see the following message: "Gnome Music Player Client does not use Launchpad as its bug tracker." Should you enable this? I think I wouldn't post it into Ubuntu section because I use OpenSuSE. If I'm wrong correct me plz.

Revision history for this message
Qball Cow (qball-qballcow) said :
#8

aah sorry, forgot this was launchpad, I'll file it myself, thanks.

Revision history for this message
Qball Cow (qball-qballcow) said :
#9

In git I have implemented a cut/copy/paste system, allowing you to move songs around your playlist.

Revision history for this message
ShTiRLiC (shtirlic) said :
#10

That's just wonderful! I'm really very impressed, nice new look (comparing to that version I have in my repo) and features. Here are some things I think need to be fixed and added:

- Hotkeys for copy/paste operations. Really useful feature to quick reorganize the playlist (Ctrl+C/X/V would be enough though I used to use Ctrl+Insert/Shift+Insert/Shift+Del, but never mind =))
- After any operation with playlist (deleting tracks, copypasting them) it scrolls to the currently playing track. I always can find it by pressing Space so there is no need to focus it by force. =) Also, focus jumps when the now playing song is changing to the next or previous. Just imagine that you edit the playlist at the end or beginning and suddenly it jumps to the middle!

Thank you for implementing such useful feature! I hope gmpc will improve furthermore.

Revision history for this message
Qball Cow (qball-qballcow) said :
#11

The following of the playing songs you can disable in the preferences window "center playing song".

I'll see about adding keybindings.

It would be handy for me, if you could post suggestions on the bugtracker. (http://musicpd.org/mantis/).

Revision history for this message
ShTiRLiC (shtirlic) said :
#12

Thanks, I missed this option, sorry. Since bugtracker appeared I'll post all new ideas there, this question may be closed.

Revision history for this message
ShTiRLiC (shtirlic) said :
#13

Thanks Qball Cow, that solved my question.