From 2abf7641a669b241bfaea2d467c1b5a149a5e8e9 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 4 Apr 2023 11:42:59 +0200 Subject: [PATCH] cleanup lf functions --- .config/lf/lfrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 680ea97f6..f739fbe1f 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -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 ${{