38 lines
625 B
Text
38 lines
625 B
Text
|
set previewer ~/.config/lf/previewer
|
||
|
set cleaner ~/.config/lf/cleaner
|
||
|
set sortby time
|
||
|
set info time
|
||
|
set reverse true
|
||
|
set period 1
|
||
|
|
||
|
map D delete
|
||
|
map H set hidden!
|
||
|
map I sxivT
|
||
|
map b bookmarks
|
||
|
map m mkdir
|
||
|
|
||
|
|
||
|
cmd bookmarks ${{
|
||
|
x=$(~/.config/lf/bookmarks.sh)
|
||
|
lf -remote "send cd $x"
|
||
|
}}
|
||
|
|
||
|
cmd mkdir ${{
|
||
|
printf "mkdir: "; read x; mkdir $x
|
||
|
}}
|
||
|
|
||
|
cmd open ${{
|
||
|
case $(file --mime-type "$f" -bL) in
|
||
|
text/*|json) $EDITOR "$f" ;;
|
||
|
video/* | audio/*) echo "Playing: $f"; mpv "$f" ;;
|
||
|
audio/* | audio/*) echo "Playing: $f"; mpv "$f" ;;
|
||
|
image/*) sxiv -a "$f" & ;;
|
||
|
*) xdg-open "$f" ;;
|
||
|
esac
|
||
|
}}
|
||
|
|
||
|
cmd sxivT ${{
|
||
|
cd $PWD
|
||
|
sxiv -t .
|
||
|
}}
|