Increase yazi functionality in helix
This commit is contained in:
parent
85b60eb42f
commit
2fd21c8c6a
2 changed files with 12 additions and 1 deletions
|
|
@ -49,5 +49,14 @@ if status is-interactive
|
|||
echo -en "\e]133;A\e\\"
|
||||
end
|
||||
|
||||
function y
|
||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
||||
yazi $argv --cwd-file="$tmp"
|
||||
if read -z cwd <"$tmp"; and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
||||
builtin cd -- "$cwd"
|
||||
end
|
||||
rm -f -- "$tmp"
|
||||
end
|
||||
|
||||
bind \cz 'fg 2>/dev/null; commandline -f repaint'
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue