cleanup lf functions
This commit is contained in:
parent
ac1be14b49
commit
b6a807af81
1 changed files with 3 additions and 3 deletions
|
@ -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 ${{
|
||||
|
|
Loading…
Add table
Reference in a new issue