acomagu / fish-async-prompt

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

Consider prompt switch by binding mode. #34

Closed acomagu closed 2 years ago

acomagu commented 4 years ago

Fish supports repainting to show the current binding mode.

https://github.com/rafaelrinaldi/pure/pull/215#issuecomment-606755447

acomagu commented 3 years ago

We need to detect repaint-mode command(but how?).

https://github.com/fish-shell/fish-shell/blob/master/share/functions/fish_vi_key_bindings.fish

function --on-variable fish_bind_mode doesn't work.