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?
Best Answer
You can put whatever you want for the name and description, but here's the command part:
It shows a dialog asking the user whether they want to delete the file(s) and if so, it deletes it. Also, if you just wanted to move the files to the trash, since Thunar already asks when you use Shift+Delete, then use this:
Lastly, be sure to click on the "Appearance Conditions" tab and check all the file types so that the action won't just appear on text files
To enable the keyboard shortcut for this action, proceed as explained here. Basically, in the file
~/.config/Thunar/accels.scm
, edit the corresponding custom action, so that it looks like this: