1
0
Fork 0

cleanup lf functions

This commit is contained in:
Luca Bilke 2023-04-04 11:42:59 +02:00
parent da766b929b
commit 2abf7641a6
No known key found for this signature in database
GPG Key ID: 7B77C51E8C779E75
1 changed files with 3 additions and 3 deletions

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 ${{