From f21a484e592726259b09c823de2c005d07de4c90 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 29 May 2017 17:13:08 +0200 Subject: [PATCH] added more shortcuts & gif support --- ranger/.config/ranger/rc.conf | 11 ++++++++++- ranger/.config/ranger/rifle.conf | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ranger/.config/ranger/rc.conf b/ranger/.config/ranger/rc.conf index 235635c..55aa9bc 100644 --- a/ranger/.config/ranger/rc.conf +++ b/ranger/.config/ranger/rc.conf @@ -30,7 +30,7 @@ set viewmode miller set column_ratios 1,3,4 # Which files should be hidden? (regular expression) -set hidden_filter ^\.(?:pyc|pyo|bak|swp|bundle|cache)$|^lost\+found$|^__(py)?cache__$ +set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp|bundle|cache)$|^lost\+found$|^__(py)?cache__$ # Show hidden files? You can toggle this by typing 'zh' set show_hidden false @@ -616,10 +616,19 @@ map gd cd ~/Documents map td tab_new ~/Documents map md shell mv %s ~/Documents map Yd shell cp %s ~/Documents +map gD cd ~/Downloads +map tD tab_new ~/Downloads +map mD shell mv %s ~/Downloads +map YD shell cp %s ~/Downloads map gww cd ~/Pictures/wallpaper map tww tab_new ~/Pictures/wallpaper map mww shell mv %s ~/Pictures/wallpaper map Yww shell cp %s ~/Pictures/wallpaper +map gp cd ~/Pictures +map tp tab_new ~/Pictures +map mpa shell mv %s ~/Pictures +map Yp shell cp %s ~/Pictures + # Images map bg shell cp %f ~/.config/wall.png && feh --bg-scale %f diff --git a/ranger/.config/ranger/rifle.conf b/ranger/.config/ranger/rifle.conf index aadc2f2..8d3c294 100644 --- a/ranger/.config/ranger/rifle.conf +++ b/ranger/.config/ranger/rifle.conf @@ -168,6 +168,9 @@ ext djvu, has atril, X, flag f = atril -- "$@" mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@" mime ^image/svg, has display, X, flag f = display -- "$@" +mime ^image/gif, has mpv, X, flag f = mpv --loop -- "$@" +mime ^image/gif, has qutebrowser, X, flag f = qutebrowser -- "$@" + mime ^image, has pqiv, X, flag f = pqiv -- "$@" mime ^image, has sxiv, X, flag f = sxiv -- "$@" mime ^image, has feh, X, flag f = feh -- "$@"