summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]rifle.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/rifle.conf b/rifle.conf
index 1d7c71a..9fae9e3 100644..100755
--- 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" -- "$@"