summaryrefslogtreecommitdiffstats
path: root/.config/lf
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-03-06 13:19:51 -0500
committerLuke Smith <luke@lukesmith.xyz>2022-03-06 13:19:51 -0500
commit148f1432e6763fe6aeef14589a8c8acce1984237 (patch)
treeadda54729ca2ca5d74a4ce74b4d9e16c594262b6 /.config/lf
parentd9fb1ad73244b958ff143ea79b8bbd990b618478 (diff)
downloadeibhear-148f1432e6763fe6aeef14589a8c8acce1984237.tar.gz
eibhear-148f1432e6763fe6aeef14589a8c8acce1984237.tar.zst
eibhear-148f1432e6763fe6aeef14589a8c8acce1984237.zip
lf tweaks included ueberzug images
Diffstat (limited to '.config/lf')
-rw-r--r--.config/lf/lfrc11
1 files changed, 8 insertions, 3 deletions
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<c-u> # new rename
map I push A<c-a> # at the very beginning
-map i push A<a-b><a-b><a-f> # before extension
-map a push A<a-b> # after extension
+map i push A<a-b><a-b><a-f> # before extention
+map a push A<a-b> # after extention
map B bulkrename
map b $setbg $f
@@ -105,5 +108,7 @@ map V push :!nvim<space>
map W $setsid -f $TERMINAL >/dev/null 2>&1
+map Y $printf "%s" "$fx" | xclip -selection clipboard
+
# Source Bookmarks
source "~/.config/lf/shortcutrc"