-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playlists: move tracks with Alt + Up/Down/PageUp/PageDown/Home/End #13092
Conversation
351d6e5
to
0b0ecbd
Compare
FWIW I think the |
0b0ecbd
to
f6a15ee
Compare
Works, but draft again because I'll look into redoing moveTrack() -> moveTracks(QModelIndexList indices, int insertPos), moving all tracks at once. edit I also briefly tried to (ab)use the dnd mechanics, i.e. construct a QDragMoveEvent but that's cumbersome and actually discouraged. edit2 |
That's great, I've tried out and it seems to work. I noticed that 'del' seems to have stopped working for me, though. Could it be related to this patch? What would be a good way to implement library commands for this now, using |
Yup, that works! |
f6a15ee
to
1b1aa5a
Compare
Done. Works like a charm, espcially consolidating non-continuous selections. |
And it avoids running into bug #13100 (or limitation once that is fixed) with tracks whose files are currently missing. |
In case someone experiences issues, I can make a debu commit from the trace output I have in my stash. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some finding. A manual test is pending.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works like a charm. You may rebase it now. Thank you.
7305d1b
to
7136386
Compare
Yeij, thanks for testing! |
All green. Thank you. |
Finally. Fixes #10826
This was rather easy only due the new Cut, Copy & Paste feature #12020. Thanks @m0dB !!edit: Redone entirely by using the mechanics of table-internal drag'n'drop.
Also fixes an issue that dropping tracks at the bottom of a playlist wouldn't select the dropped tracks nor give a current index for navigation.
Also includes a small fix for pasteTracks() (same: current index for navi)
Applicable only in (unlocked) playlists.
(sort by # otherwise it's rather unpredictable)
non-continuous selections are first consolidated at first/last row, then moved on next keypressmay not be desired