fix(functions): correct palette roles in logs and smart_exit help text
Both had headings (Usage:/Options:/Keys in fzf:) left completely uncolored, flags rendered in the argument color instead of the flag color, and the command name hardcoded to a static ANSI green (c_accent) instead of the theme-derived c_cmd -- the last of the raw, unconverted color usage the audit turned up.
This commit is contained in:
@@ -47,13 +47,13 @@ function smart_exit --description 'Capture colorized scrollback before exiting,
|
||||
__fish_palette
|
||||
|
||||
if set -q _flag_help
|
||||
echo -e "Usage: $c_accent"exit"$c_reset [$c_arg""OPTIONS""$c_reset]"
|
||||
echo -e "$c_head""Usage:$c_reset $c_cmd"exit"$c_reset [$c_arg""OPTIONS""$c_reset]"
|
||||
echo ""
|
||||
echo "Closes the current shell session, automatically archiving the window scrollback."
|
||||
echo ""
|
||||
echo "Options:"
|
||||
echo -e " $c_arg""-h, --help""$c_reset Show this help message"
|
||||
echo -e " $c_arg""-n, --no-log""$c_reset Exit immediately $c_cmd""without""$c_reset saving a scrollback history log"
|
||||
echo "$c_head""Options:$c_reset"
|
||||
echo -e " $c_flag""-h, --help""$c_reset Show this help message"
|
||||
echo -e " $c_flag""-n, --no-log""$c_reset Exit immediately without saving a scrollback history log"
|
||||
return 0
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user