acomagu / fish-async-prompt

Make your prompt asynchronous to improve the reactivity.
MIT License
389 stars 22 forks source link

Not working with keybindings for prevd/nextd #45

Closed mickimnet closed 2 years ago

mickimnet commented 3 years ago

Hello everybody,

Fish Shell has a very nice feature for the keys Alt + and Alt + , which are bound to the internal functions prevd-or-backward-word and nextd-or-forward-word.

Those functions are active while on the command line only if at the beginning of the line and the command line is empty, the function prevd or nextd is called. Those functions change to the previous or next directory in the directory stack. That doesn't issue a new command line, but the current working directory is changed.

Without fish-async-prompt Fish Shell does change both prompts (and the terminal title, if enabled) and no line feed is issued.

With fish-async-prompt the content of both prompts is not changed, but the terminal title (if enabled) and therefore the current working directory is truly changed.

Thanks & take care Mick

acomagu commented 3 years ago

Thanks for the reporting. I didn't know that feature.

The root cause is same as #34. fish-async-prompt has no way to detect repainting the prompt without fish_prompt event currently.

I'll managed to do it. Thank you.

mickimnet commented 3 years ago

You're welcome. I was guessing, that it may have something to do with #34, and I wanted to explicitly check for the keybinding function.

Take care