commit bf59581fb116fb727bbfa263aa24cb6426fc2a44
parent e575703b27e861a3d41ec2b98cae1a584a55602d
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Tue, 22 Jan 2019 11:24:45 -0500
In lf, use imv to open image. Also open the directory in imv for easy navigation.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
@@ -47,6 +47,7 @@ map <c-r> search-back
cmd open ${{
case $(file --mime-type $f -b) in
text/*) nohup emacsclient -c -a emacs $fx > /dev/null 2> /dev/null &;;
+ image/*) nohup imv -n $fx ./ > /dev/null 2> /dev/null &;;
application/pdf) nohup zathura $fx > /dev/null 2> /dev/null &;;
*) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;;
esac