pure-fish / pure

Pretty, minimal, and fast prompt for Fish shell inspired by sindresorhus/pure
https://pure-fish.github.io/pure/
MIT License
1.25k stars 132 forks source link

VI-mode visual mode prompt #312

Open phortonssf opened 1 year ago

phortonssf commented 1 year ago

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

edouard-lopez commented 1 year ago

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

pure-vimode-fallback-prompt

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

Inspiranion on Zsh implementation

[ Help needed ]/Feature request: add more vim mode indicators #552

edouard-lopez commented 1 year ago

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