diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-10-01 22:48:50 +0200 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-10-01 22:56:50 +0200 |
commit | de28ac5d22fc2530363703b93072ca25aa19cc10 (patch) | |
tree | 3008d29a10c738b76d1bdb9fa4e0d3e7efe30a15 | |
parent | 11087fd48f4fcbec9112a25d77eec0a5b2211d9f (diff) | |
download | ranger-de28ac5d22fc2530363703b93072ca25aa19cc10.tar.gz |
Offer trash-put as an option in rifle
Closes #1699.
-rw-r--r-- | ranger/config/rifle.conf | 6 |
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 -- "$@" |