DeaDBeeF-Player / deadbeef

DeaDBeeF Player
https://deadbeef.sourceforge.io/
Other
1.6k stars 175 forks source link

Cancellation of accidental sorting of playlist #2658

Closed raparperi closed 2 years ago

raparperi commented 2 years ago

Steps to reproduce the problem

Click for example Artist column and it sorts the playlist.

What's going on? Describe the problem in as much detail as possible.

The problem is that i have one playlist ordered by when songs are being added to this playlist. I like them in this way. I don't want the playlist to be sorted in any way. Sometimes i how ever by accident click some column which then sorts the playlist and it's impossible to get it in original order. Or is there some way?

What i do now is that i have added %last_modified% column and it helps so that at least i get it almost in original order. Not quite, because if i change the title of song or some other column it updates the %last_modified% setting.

Solution, i think could be if there is %file_created_timestamp% field or if there would be possibility to lock the particuler playlist so that it's columns cannot be sorted.

Information about the software:

Deadbeef version: OS:1.8.7

kpcee commented 2 years ago

I think this could be problematic to implement for all platforms and all file systems. Not all file systems under Linux support the crtime flag, according to this website only xfs and ext4 support it, all others do not.

To avoid such accidents in the future, regular backups could prevent this. I use BorgBackup for this kind of thing on daily basis.

raparperi commented 2 years ago

I think this could be problematic to implement for all platforms and all file systems. Not all file systems under Linux support the crtime flag, according to this website only xfs and ext4 support it, all others do not.

To avoid such accidents in the future, regular backups could prevent this. I use BorgBackup for this kind of thing on daily basis.

Yes, the backups! I just remembered after i posted the issue that i have a weekly backups and then i remembered that last time it happened i made a script that backups .config/playlists/* every time i login into xfce. So playlist restored and all well! Now i'm editing that script so that it sends a message telling that playlists are backed so i don't need to remember it.

Would be nice if it would be possible to lock a playlist so that it cannot be sorted, a check mark on right click menu on playlist tab perhaps? Or that if it asks do you really want to sort, but that would be annoying since other playlists i sort sometimes. I have 4927 tracks on it so it's a big mess if it gets sorted acidentially.

Difficult word that remembered btw, i typed it wrongly a number of times. How many times there is remememeberered. Our word is easier to remember "muistin". ;-)

jonpatterns commented 2 years ago

I too have suffered from this problem. Also, accidentally opening audio file also wipes playlist as I have deadbeef as my default audio player.

An alternative solution would be to have one (or more) levels of 'undo' for any change to the playlist.

I also support 'lock playlist' feature for extra idiot proofing.

Mango2000 commented 2 years ago

I'm also doing regular backups because of this and accidental sorting of playlists by name in the playlist browser plugin(a horror if you have many playlists carefully sorted by hand in the browser panel). But also when I accidentally drag & drop a lot of files from the desktop to the wrong playlist in the playlist browser plugin(I don't use playlist tabs) the backup is useful.

lesliev commented 2 years ago

I too have many times accidentally sorted my carefully ordered playlist. I try to save it and reload it but that means I need to always remember to save it every time I add songs. And undo or "no sorting" option would be great.

kpcee commented 2 years ago

Does anyone know how this is solved in foobar2000?

huglovefan commented 2 years ago

just an idea but it could be solved if the headers only did visual sorting

one program that has undo-able sort like this is the task manager in google chrome, there are probably others

Oleksiy-Yakovenko commented 2 years ago

duplicate of #490