From 33fbe5f67cd903413d3a6305785658464bec5e71 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 13 Mar 2017 23:08:38 +0100 Subject: New application/file relation --- rifle.conf | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) mode change 100644 => 100755 rifle.conf (limited to 'rifle.conf') diff --git a/rifle.conf b/rifle.conf old mode 100644 new mode 100755 index 1d7c71a..9fae9e3 --- a/rifle.conf +++ b/rifle.conf @@ -48,6 +48,12 @@ # Note: When using rifle in ranger, there is an additional flag "c" for # only running the current file even if you have marked multiple files. +directory, flag f = zip -r "$1.zip" "$@" +directory, flag f = tar zcvf "$1.tar.gz" "$@" + + + + #------------------------------------------- # Websites #------------------------------------------- @@ -169,9 +175,20 @@ ext djvu, has evince, X, flag f = evince -- "$@" ext djvu, has zathura,X, flag f = zathura -- "$@" ext djvu, has atril, X, flag f = atril -- "$@" + + +#------------------------------------------- +# Gif +#-------------------------------------------- +ext gif, has eog, X, flag f = eog -- "$@" +ext gif, has gifview, X, flag f = gifview -a -- "$@" + + + #------------------------------------------- # Image Viewing: #------------------------------------------- +mime ^image/svg, , , = $EDITOR -- "$@" mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@" mime ^image/svg, has display, X, flag f = display -- "$@" @@ -184,6 +201,8 @@ mime ^image, has eom, X, flag f = eom -- "$@" mime ^image, has gimp, X, flag f = gimp -- "$@" ext xcf, X, flag f = gimp -- "$@" + + #------------------------------------------- # Archives #------------------------------------------- @@ -206,6 +225,7 @@ 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 = file "$@";read !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" -- "$@" -- cgit v1.2.3