From ac9a1ae1b0dfc0bbc3554da111cfc6e35509a2a9 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Fri, 12 Feb 2021 15:50:56 +0700 Subject: Update support for languages and libraries --- ranger/.config/ranger/rifle.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ranger') diff --git a/ranger/.config/ranger/rifle.conf b/ranger/.config/ranger/rifle.conf index 8d0926d..bf3f768 100644 --- a/ranger/.config/ranger/rifle.conf +++ b/ranger/.config/ranger/rifle.conf @@ -54,8 +54,8 @@ # Define the "editor" for text files as first action mime ^text, label editor = $EDITOR -- "$@" mime ^text, label pager = "$PAGER" -- "$@" -!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@" -!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@" +!mime ^text, label editor, ext xml|json|info|csv|tex|py|rs|pl|rb|js|sh|php = $EDITOR -- "$@" +!mime ^text, label pager, ext xml|json|info|csv|tex|py|rs|pl|rb|js|sh|php = "$PAGER" -- "$@" ext 1 = man "$1" ext s[wmf]c, has zsnes, X = zsnes "$1" @@ -206,9 +206,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 = $EDITOR -- "$@" -label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@" + !mime ^text, !ext xml|json|csv|tex|py|rs|pl|rb|js|sh|php = ask +label editor, !mime ^text, !ext xml|json|csv|tex|py|rs|pl|rb|js|sh|php = $EDITOR -- "$@" +label pager, !mime ^text, !ext xml|json|csv|tex|py|rs|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" -- cgit 1.4.1