From 148f1432e6763fe6aeef14589a8c8acce1984237 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 6 Mar 2022 13:19:51 -0500 Subject: lf tweaks included ueberzug images --- .config/lf/lfrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.config/lf/lfrc') diff --git a/.config/lf/lfrc b/.config/lf/lfrc index f87325d..3ea7f58 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -8,6 +8,8 @@ set scrolloff 10 set icons set period 1 set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml" +set ratios 1:2:3 +set cleaner ~/.local/bin/lf-cleaner # Vars that depend on environmental variables $lf -remote "send $id set previewer ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope" @@ -15,8 +17,9 @@ $lf -remote "send $id set previewer ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope" # cmds/functions cmd open ${{ case $(file --mime-type "$(readlink -f $f)" -b) in + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;; image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;; - text/*) $EDITOR $fx;; + text/*|application/json|inode/x-empty) $EDITOR $fx;; image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;; image/svg+xml) display -- $f ;; image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|tif\|ico\)\(_large\)*$" | setsid -f sxiv -aio 2>/dev/null | lf-select & ;; @@ -94,8 +97,8 @@ map O $mimeopen --ask $f map A rename # at the very end map c push A # new rename map I push A # at the very beginning -map i push A # before extension -map a push A # after extension +map i push A # before extention +map a push A # after extention map B bulkrename map b $setbg $f @@ -105,5 +108,7 @@ map V push :!nvim map W $setsid -f $TERMINAL >/dev/null 2>&1 +map Y $printf "%s" "$fx" | xclip -selection clipboard + # Source Bookmarks source "~/.config/lf/shortcutrc" -- cgit v1.3.1