lf
lf copied to clipboard
Integration with z.lua ?
for z.lua integration with ranger there is this extension to achieve that, is there any similar project to achieve that in lf ?
You could try this cmd (set ZLUA_ROOT path properly):
cmd zl ${{
result="$(read '?Dir: ' input && $ZLUA_ROOT/z.lua -I -e $input)"
[[ -z "$result" ]] && read '?No directory. Press Enter to continue' || lf -remote "send ${id} cd '${result}'"
}}
Note: I'm using read
from zsh.
I'm having this error message :
--: line 3: read:
?Dir: ': not a valid identifier`
@SamDc73 You might be using bash. Try read -p 'Dir: '
. The read '?Dir: '
syntax works with zsh.
It works
cmd z-jump ${{
z_exe="$HOME/.local/share/zinit/plugins/skywind3000---z.lua/z.lua"
lf -remote "send ${id} cd '$($z_exe -I -e $1)'"
}}
map Z push :z-jump<space>
This is now listed in the integrations section of the wiki. I think this issue can be closed.