diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-02-12 15:50:56 +0700 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-02-12 15:50:56 +0700 |
commit | ac9a1ae1b0dfc0bbc3554da111cfc6e35509a2a9 (patch) | |
tree | 64571ba5c7fac6902a5ccf2e315087be08a7bf06 /ranger | |
parent | 1f9e00aaf9ecc88d23d6bae93ffe34aa7d3e08da (diff) | |
download | dotfiles-ac9a1ae1b0dfc0bbc3554da111cfc6e35509a2a9.tar.gz |
Update support for languages and libraries
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/.config/ranger/rifle.conf | 10 |
1 files changed, 5 insertions, 5 deletions
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" |