1
0
Fork 0

cleanup lf functions

This commit is contained in:
Luca Bilke 2023-04-04 11:42:59 +02:00
parent ac1be14b49
commit b6a807af81

View file

@ -162,17 +162,17 @@ cmd share $curl -F"file=@$fx" https://0x0.snaile.de | xclip -r -selection c
cmd fzfsearch ${{
file="$(fzf)"
[ -d $file ] && lf -remote "send $id cd $file"
[ -d $file ] && lf -remote "send $id cd $file" && return 0
[ -f $file ] && lf -remote "send $id select $file"
}}
cmd fzftags ${{
file="$(cat ${XDG_DATA_HOME:-$HOME/.local/share}/lf/tags | sed 's/:\*$//' | fzf)"
[ -d $file ] && lf -remote "send $id cd $file"
[ -d $file ] && lf -remote "send $id cd $file" && return 0
[ -f $file ] && lf -remote "send $id select $file"
}}
cmd fzfmarks ${{
file="$(cat ${XDG_DATA_HOME:-$HOME/.local/share}/lf/marks | sed 's/^.://' | fzf)"
[ -d $file ] && lf -remote "send $id cd $file"
[ -d $file ] && lf -remote "send $id cd $file" && return 0
[ -f $file ] && lf -remote "send $id select $file"
}}
cmd fzfshortcutfiles ${{