/+ recol
This commit is contained in:
11
dots/lf/lfrc
11
dots/lf/lfrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user