diff options
-rw-r--r-- | ranger/config/rifle.conf | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ranger/config/rifle.conf b/ranger/config/rifle.conf index 039344bd..857fa4b1 100644 --- a/ranger/config/rifle.conf +++ b/ranger/config/rifle.conf @@ -74,10 +74,10 @@ ext x?html?, has w3m, terminal = w3m "$@" # Misc #------------------------------------------- # Define the "editor" for text files as first action -mime ^text, label editor = "$EDITOR" -- "$@" -ext xml|csv|tex, label editor = "$EDITOR" -- "$@" -mime ^text, label pager = "$PAGER" -- "$@" -ext xml|csv|tex, label pager = "$PAGER" -- "$@" +mime ^text, label editor = "$EDITOR" -- "$@" +mime ^text, label pager = "$PAGER" -- "$@" +!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$EDITOR" -- "$@" +!mime ^text, label editor, ext xml|csv|tex|py|pl|rb|sh|php = "$PAGER" -- "$@" ext 1 = man "$1" ext s[wmf]c, has zsnes, X = zsnes "$1" @@ -177,5 +177,5 @@ 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 -label editor, !mime ^text, !ext xml|csv|tex = "$EDITOR" -- "$@" -label pager, !mime ^text, !ext xml|csv|tex = "$PAGER" -- "$@" +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" -- "$@" |