quodlibet / quodlibet

Music player and music library manager for Linux, Windows, and macOS
https://quodlibet.readthedocs.io
GNU General Public License v2.0
1.45k stars 224 forks source link

Add --trash control to move file to trash, no confirmation #4602

Open sebastian-65 opened 1 month ago

sebastian-65 commented 1 month ago

When doing triage of new music in the library, it would be useful to have some easy way to delete audio file I'm just listetning to (with window hidden) and decided to never listen again, and do it fast without interrupting the flow (playing next song).

To my knowledge, there's no such way of doing this now.

declension commented 3 weeks ago

Thanks. I don't really understand where --trash / --move-to-trash would be used here...

sebastian-65 commented 3 weeks ago

@declension Binded as keyboard shortcut in OS directly, to any hotkey of preference.

Meriipu commented 2 weeks ago

perhaps if a menu or settings (possibly advanced/hidden by default) to toggle on or off different prompts was added you could just use the normal delete/trash functionality without a prompt (I have floated the idea in a few different issues here and there)

since multiple different files can be selected in multiple browsers it could cause some confusing situations about which selection would be removed from the quodlibet --trash command

sebastian-65 commented 2 weeks ago

@Meriipu Disabling confirmation prompts might help, yet in my scenario there's still no way to assign trash action to hotkey (AFAIK). Having multiple browsers is also good point, I don't have answer to that since I always use 1 browser at once at all times.

(I've edited my post for higher clarity.)

Meriipu commented 2 weeks ago

there's still no way to assign trash action to hotkey

for what it is worth that has a hotkey of ctrl+delete already (I do not think remove from library has a hotkey though).

sebastian-65 commented 2 weeks ago

Yes, that's only when you are in the UI, having window opened. So if you listen to music while you're let's say working, now you have need to do:

That's why it would be so great to replace this with a single hotkey hit.

Meriipu commented 2 weeks ago

it is not quite what you are looking for but if you do not currently use 1-star ratings for anything you could bind a key to set the rating to 1 star with the --rating parameter

and then every now and then you can go through and delete 1-star songs in batches

there seems to be ways to query/filter out 1-star songs while playing with something like the --query parameter so the 1-star songs are excluded

  --rating=[+|-]0.0..1.0                   Set rating of playing song

I can see the use case of having more command-line actions on the currently playing song (like deleting it) though

sebastian-65 commented 2 weeks ago

@Meriipu Good point, that might be a solid workaround. Thanks for that!