From 1df65c4481f61d5aa9b486074ec2c766057748c8 Mon Sep 17 00:00:00 2001 From: awy Date: Wed, 7 Aug 2024 14:58:33 +0300 Subject: lf updater --- .config/lf/lfrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.config/lf/lfrc') diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 2be3b1c..685f374 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -2,6 +2,13 @@ set sixel true set cleaner ~/.config/lf/cleaner set previewer ~/.config/lf/scope +cmd open ${{ + case $(file --mime-type "$(readlink -f $f)" -b) in + text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;; + *) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;; + esac +}} + cmd delete ${{ clear; tput cup $(($(tput lines)/3)); tput bold set -f -- cgit v1.2.3