This commit is contained in:
committer@tuxwarrior
2025-04-13 13:53:14 -05:00
parent 5001b0bf12
commit c5171e72e0

View File

@@ -85,6 +85,17 @@ cmd open ${{
}}
# reconfigure columns, based on with | https://github.com/gokcehan/lf/blob/master/doc.md
cmd recol %{{
if [ $lf_width -le 80 ]; then
lf -remote "send $id set ratios 1:2"
elif [ $lf_width -le 160 ]; then
lf -remote "send $id set ratios 1:2:3"
else
lf -remote "send $id set ratios 1:2:3:5"
fi
}}
#cmd open ${{
# test -L $f && f=$(readlink -f $f)
# case $(file --mime-type $f -b) in