diff --git a/.config/lf/icons b/.config/lf/icons index 631163a..4250f44 100644 --- a/.config/lf/icons +++ b/.config/lf/icons @@ -24,12 +24,12 @@ ln  # LINK or  # ORPHAN tw t # STICKY_OTHER_WRITABLE st t # STICKY -ow  # OTHER_WRITABLE -di  # DIR +# ow  # OTHER_WRITABLE +# di  # DIR # ow  # OTHER_WRITABLE # di  # DIR -# ow 󰝰 # OTHER_WRITABLE -# di 󰝰 # DIR +ow 󰝰 # OTHER_WRITABLE +di 󰝰 # DIR pi p # FIFO so 󰡂 # SOCK bd b # BLK @@ -354,8 +354,17 @@ Vagrantfile  # other formats *.pdf  +*.tpy 󰙩 *.iso  *.org  *.ovpn 󰳌 *.txt  +*.pptx 󰈩 +*.docx  +*.doc  +*.odt  +*.odg 󰽉 +*.csv  +*.ics  +*.typ 󰙩 diff --git a/.config/lf/lfrc b/.config/lf/lfrc index f9e8002..5510cb6 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -9,6 +9,7 @@ set shellopts '-eu' # Treat undefined env vars as errors. Exit upon error. set ifs "\n" set scrolloff 10 set icons # Use icons +set info "size" set period 1 # Poll directory status every X seconds set sixel true set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml" @@ -121,9 +122,7 @@ cmd open ${{ [ ! -z $@ ] && [ "$@" = "new_window" ] && new_window=1 function launch { - # swallower="gobble" - # [ ! -n "${WAYLAND_DISPLAY}" ] && swallower="devour" - swallower="devour" + [ -v WAYLAND_DISPLAY ] && swallower="gobble" || swallower="devour" if [ ! -v new_window ]; then $swallower "$@" >/dev/null 2>&1 @@ -138,6 +137,10 @@ cmd open ${{ application/pgp-encrypted|\ inode/x-empty|\ text/*) + if [ "${f##*.}" = "org" ]; then + launch emacsclient -c "$fx" + exit + fi [ -v new_window ] \ && ($TERMINAL -e $SHELL -c "$EDITOR \"$fx\"" >/dev/null 2>&1 &) \ || ($EDITOR "$fx")