Fish custom key binding with y
function doesn't update fish prompt directory
#1964
Unanswered
jcelaya775
asked this question in
1. Q&A
Replies: 1 comment 1 reply
-
Does it work if you use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What system are you running Yazi on?
macOS
What terminal are you running Yazi in?
kitty 0.34.1
yazi --debug
outputDescribe the bug
In fish shell, I configured a custom key binding (
ctrl+y
) to run the shell wrapper function, but when I pressctrl+y
in fish and then switch directories inside yazi and then pressq
, the fish prompt is still showing the original directory unless I enter another command, and only then does it show the correct directory that yazicd
'd into. The is probably a fish prompt issue, but figured I would bring this up since someone else might be trying the same thing.Minimal reproducer
Paste the following into
~/.config/fish/config.fish
:Follow these steps using fish shell:
pwd
(original directory, before pressingctrl+y
):Press
ctrl+y
:Move into another directory:
Press
q
(the correct directory is not being displayed in the fish prompt):pwd
again (the fish prompt only shows the correct directory after entering another command):Anything else?
This behavior doesn't occur when I run
y
in fish (without the custom key binding), and it works as expected.Validations
yazi --debug
) input box to the nightly that I triedmv ~/.config/yazi ~/.config/yazi-backup
)Beta Was this translation helpful? Give feedback.
All reactions