Thunar does not have the option of a prompt asking for confirmation when moving files to trash (this is, when pressing the Delete key). I want to add one.
The only way I can think of doing this by creating a new "Custom action", which accepts scripts and binaries (in the "Command" option, below):
Maybe I can create a script file that executes the delete after a confirmatory prompt. Once that is done, the rest is easy: just link that action to the Delete key.
But the truth is I have no idea how to start. I actually don't know if this is the best approach. Maybe there is a better one?
accels.scmgets overwritten automatically with the default content on each system start-up. Secondly, you may not choose the 'Delete' key for your custom action as it is sewn deeply in the Thunar source code to invoke 'moving to the trash' (bypassing any confirmation dialog). When I try to set the keyboard shortcut to be the 'Delete' key, it says, 'This keyboard shortcut is already in use: «trash-delete»'. My version of Thunar is 4.16.8. – bighugedev Nov 19 '24 at 02:58