VI-mode visual mode prompt
In vi mode, is there a way to set the prompt for VISUAL mode like there is for CMD and INSERT modes? Or I'm I stuck with visual mode always looking like CMD mode? Ty
We do not support this at the moment. You can fall back to Fish native mechanism by disabling pure vimode prompt:
set --universal pure_reverse_prompt_symbol_in_vimode false

Better Support?
If you would like to propose an MR, we could work toward adding support. I recommend you have a look at the following links.
Note: I'm not actively using vi mode as I'm using Fish with Tmux and copy/paste don't work as I expected (probably some overlapping binding issue).
Fish
I'm not really fan of Fish fish_default_mode_prompt prompt prefix.
Pure's code
- conf.d/pure.fish: see our default settings
-
functions/_pure_prompt_vimode.fish: use Fish vi prompt when
$pure_reverse_prompt_symbol_in_vimodeis set tofalseotherwise disable it and use internal mechanism -
functions/_pure_get_prompt_symbol.fish: use
$pure_symbol_reverse_promptfor VIinsertandreplacemode (that where you want to contribute more complex rule). - check the
tests/directory for the corresponding tests
Inspiranion on Zsh implementation
[ Help needed ]/Feature request: add more vim mode indicators #552
Without PR on this, I'm going to close this in the coming fortnight.
Feel free to reopen if you want to work on it