diff options
author | toonn <toonn@toonn.io> | 2019-11-17 16:45:53 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2019-11-17 16:45:53 +0100 |
commit | f4f834705d96ec8655a5078b486f9f67658e991a (patch) | |
tree | ac739e666189b6ebde11d36aacc7bd675c3b80a5 /ranger | |
parent | 2985a092f25c58685fa460e0b800ed1ca3acd3b1 (diff) | |
parent | 69c816ee485c0ca5f2f651ae6f208f8e4e6a7c20 (diff) | |
download | ranger-f4f834705d96ec8655a5078b486f9f67658e991a.tar.gz |
Merge branch 'rifle-generic-open'
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/config/rifle.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ranger/config/rifle.conf b/ranger/config/rifle.conf index 8c48760e..86f53fd1 100644 --- a/ranger/config/rifle.conf +++ b/ranger/config/rifle.conf @@ -259,6 +259,12 @@ label wallpaper, number 12, mime ^image, has feh, X = feh --bg-tile "$1" 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" +#------------------------------------------- +# Generic file openers +#------------------------------------------- +label open, has xdg-open = xdg-open -- "$@" +label open, has open = open -- "$@" + # 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} -- "$@" |