No way to reflect command failure in character.vicmd_symbol
#2967
Labels
🐛 bug
Something isn't working as expected.
character.vicmd_symbol
#2967
Bug Report
Current Behavior
The
character
module defines:This means that in vi normal mode, the failure status cannot be shown. Since the
status
module is disabled by default, this means going into vi normal mode hides the status.Expected Behavior
The config should have a way of showing success/error state in vi normal mode.
Possible Solution
The config should probably look something like
The only thing I don't see how to do offhand is to let the user disable
vicmd_symbol
(in case they don't actually want the mode displayed this way), since toml has nonull
. We could say "set it tofalse
" but that's very hacky. Or maybe we could define$insert_symbol
as a variable available when evaluating$vicmd_symbol
so I can setvicmd_symbol = '$insert_symbol'
. Or just add avi_disabled = false
key. I don't know if there's any other precedent for this situation in starship.Alternatively we could add
vicmd_success_symbol
andvicmd_error_symbol
but that seems much more unwieldy, and isn't backwards-compatible (existing setups that modifiedvicmd_symbol
will have their changes stop applying after an error).The text was updated successfully, but these errors were encountered: