diff --git a/home/dot_config/ranger/rifle.conf b/home/dot_config/ranger/rifle.conf index 022ec98..7f6931c 100644 --- a/home/dot_config/ranger/rifle.conf +++ b/home/dot_config/ranger/rifle.conf @@ -255,9 +255,9 @@ label wallpaper, number 13, mime ^image, has feh, X = feh --bg-center "$1" label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1" # Define the editor for non-text files + pager as last action - !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ask -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" -- "$@" + !mime ^text, !ext xml|json|lua|csv|tex|py|pl|rb|js|sh|php = ask +label editor, !mime ^text, !ext xml|json|lua|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@" +label pager, !mime ^text, !ext xml|json|lua|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: mime application/x-executable = "$1"