hydrus icon indicating copy to clipboard operation
hydrus copied to clipboard

Shortcuts for advanced deletion methods

Open kotonbu opened this issue 4 years ago • 4 comments

Like in many file managers, delete will send to trash and shift + delete will just delete the file. Having something like this would be nice in Hydrus, although Hydrus has many other deletion methods so having the ability to add a shortcut to any of them would be ideal. This would speed up workflow a lot for the advanced deletion methods as currently it is a nice feature but it is kind of a pain to have to select the reason each time.

kotonbu avatar Jul 04 '20 15:07 kotonbu

There could be a lot of different deletion reasons, which would take up a lot of different hotkeys. My thoughts here would be to give the deletion reason window its own shortcuts or something, so that you can press another key when it comes up to assign the reason and close the window. This would save users from having to remember all the different shortcuts for the different reasons (the reasoning window ideally would show the shortcuts for each reason), and give them a chance to confirm what they're doing (deletion is a sensitive operation, after all). This would also keep the other options in that dialogue, like custom reasons, in easy reach.

pozieuto avatar Jul 04 '20 17:07 pozieuto

Why not both? A deletion reason window shortcut type, and a specific deletion reason shortcut type. I'm not sure whether there should be an option to bypass confirmation though.

Mengmoshu avatar Jul 04 '20 20:07 Mengmoshu

I'm not sure whether there should be an option to bypass confirmation though.

You don't exactly accidentally press Shift+Del. Though if you want to idiot proof it, have a warning on first time.

A nice default I think is to have Delete open the delete window with "Send this file to trash?" and "Deleted from Media Page/Deleted from Preview of Media Viewer." selected and Shift+Delete open the delete window with "Permanently delete this file?" with the same reason selected. Make them all configurable as expected of a shortcut and a setting to skip this confirmation. This way you get a default setting where you don't just accidentally delete a bunch of files (since you have to shift+delete and then enter/apply) but can still make it even easier/faster to delete for non-brainlets.

Zweibach avatar Jul 04 '20 23:07 Zweibach

Yeah, that makes sense.

Mengmoshu avatar Jul 05 '20 07:07 Mengmoshu