summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2019-11-17 16:45:53 +0100
committertoonn <toonn@toonn.io>2019-11-17 16:45:53 +0100
commitf4f834705d96ec8655a5078b486f9f67658e991a (patch)
treeac739e666189b6ebde11d36aacc7bd675c3b80a5 /ranger
parent2985a092f25c58685fa460e0b800ed1ca3acd3b1 (diff)
parent69c816ee485c0ca5f2f651ae6f208f8e4e6a7c20 (diff)
downloadranger-f4f834705d96ec8655a5078b486f9f67658e991a.tar.gz
Merge branch 'rifle-generic-open'
Diffstat (limited to 'ranger')
-rw-r--r--ranger/config/rifle.conf6
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} -- "$@"