u
This commit is contained in:
11
dots/lf/lfrc
11
dots/lf/lfrc
@@ -63,11 +63,20 @@ cmd cds :cd /home/poq/syncDir
|
||||
# text files and a file opener for the rest.
|
||||
cmd open &{{
|
||||
case $(file --mime-type -Lb $f) in
|
||||
text/*) lf -remote "send $id \$$EDITOR \$fx";;
|
||||
# text/*) lf -remote "send $id \$$EDITOR \$fx";;
|
||||
text/*) helix \$fx";;
|
||||
*) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;;
|
||||
esac
|
||||
}}
|
||||
|
||||
#cmd open ${{
|
||||
# test -L $f && f=$(readlink -f $f)
|
||||
# case $(file --mime-type $f -b) in
|
||||
# text/*) geany $fx;;
|
||||
# *) for f in $fx; do xdg-open $f > /dev/null 2> /dev/null & done;;
|
||||
# esac
|
||||
# }}
|
||||
|
||||
# define a custom 'rename' command without prompt for overwrite
|
||||
# cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
|
||||
# map r push :rename<space>
|
||||
|
||||
Reference in New Issue
Block a user