diff options
Diffstat (limited to 'ranger/config/rifle.conf')
-rw-r--r-- | ranger/config/rifle.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/config/rifle.conf b/ranger/config/rifle.conf index ad4ba148..daed8b90 100644 --- a/ranger/config/rifle.conf +++ b/ranger/config/rifle.conf @@ -11,6 +11,8 @@ # $1-$9 | The n-th selected file # $@ | All selected files # +# If you use the special command "ask", rifle will ask you what program to run. +# # Prefixing a condition with "!" will negate its result. # These conditions are currently supported: # match <regexp> | The regexp matches $1 @@ -177,5 +179,6 @@ label wallpaper, number 13, mime ^image, X = feh --bg-center "$1" label wallpaper, number 14, mime ^image, X = feh --bg-fill "$1" # Define the editor for non-text files + pager as last action + !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php = ask label editor, !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@" label pager, !mime ^text, !ext xml|csv|tex|py|pl|rb|sh|php = "$PAGER" -- "$@" |