about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWojciech Siewierski <wojciech.siewierski@onet.pl>2019-10-01 22:48:50 +0200
committerWojciech Siewierski <wojciech.siewierski@onet.pl>2019-10-01 22:56:50 +0200
commitde28ac5d22fc2530363703b93072ca25aa19cc10 (patch)
tree3008d29a10c738b76d1bdb9fa4e0d3e7efe30a15
parent11087fd48f4fcbec9112a25d77eec0a5b2211d9f (diff)
downloadranger-de28ac5d22fc2530363703b93072ca25aa19cc10.tar.gz
Offer trash-put as an option in rifle
Closes #1699.
-rw-r--r--ranger/config/rifle.conf6
1 files changed, 5 insertions, 1 deletions
diff --git a/ranger/config/rifle.conf b/ranger/config/rifle.conf
index a90646e2..ef5ecbf0 100644
--- a/ranger/config/rifle.conf
+++ b/ranger/config/rifle.conf
@@ -264,5 +264,9 @@ label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
 label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php  = ${VISUAL:-$EDITOR} -- "$@"
 label pager,  !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php  = "$PAGER" -- "$@"
 
-# The very last action, so that it's never triggered accidentally, is to execute a program:
+# One of the last actions, so that it's never triggered accidentally, is to execute a program:
 mime application/x-executable = "$1"
+
+# Move the file to trash, available for all filetypes provided
+# trash-cli is available.
+has trash-put = trash-put -- "$@"