diff options
-rw-r--r-- | ranger/config/rifle.conf | 6 | ||||
-rw-r--r-- | ranger/data/mime.types | 4 |
2 files changed, 9 insertions, 1 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} -- "$@" diff --git a/ranger/data/mime.types b/ranger/data/mime.types index 900cb7d9..abee11f6 100644 --- a/ranger/data/mime.types +++ b/ranger/data/mime.types @@ -12,11 +12,13 @@ audio/flac flac audio/musepack mpc mpp mp+ -audio/ogg oga ogg spx +audio/ogg oga ogg spx opus audio/wavpack wv wvc audio/webm weba audio/x-ape ape +image/webp webp + video/mkv mkv video/webm webm video/flash flv |