cleanup lf functions
This commit is contained in:
parent
da766b929b
commit
2abf7641a6
|
@ -162,17 +162,17 @@ cmd share $curl -F"file=@$fx" https://0x0.snaile.de | xclip -r -selection c
|
||||||
|
|
||||||
cmd fzfsearch ${{
|
cmd fzfsearch ${{
|
||||||
file="$(fzf)"
|
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"
|
[ -f $file ] && lf -remote "send $id select $file"
|
||||||
}}
|
}}
|
||||||
cmd fzftags ${{
|
cmd fzftags ${{
|
||||||
file="$(cat ${XDG_DATA_HOME:-$HOME/.local/share}/lf/tags | sed 's/:\*$//' | fzf)"
|
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"
|
[ -f $file ] && lf -remote "send $id select $file"
|
||||||
}}
|
}}
|
||||||
cmd fzfmarks ${{
|
cmd fzfmarks ${{
|
||||||
file="$(cat ${XDG_DATA_HOME:-$HOME/.local/share}/lf/marks | sed 's/^.://' | fzf)"
|
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"
|
[ -f $file ] && lf -remote "send $id select $file"
|
||||||
}}
|
}}
|
||||||
cmd fzfshortcutfiles ${{
|
cmd fzfshortcutfiles ${{
|
||||||
|
|
Loading…
Reference in New Issue