mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 15:37:24 +00:00
Minor updates
* Add -L/--long completion for 'set' command. * Fix completion description color.
This commit is contained in:
parent
5bbf220077
commit
a2788129ff
2 changed files with 3 additions and 2 deletions
|
@ -444,8 +444,8 @@ static void completion_print_item( const wchar_t *prefix, comp_t *c, int width,
|
|||
written++;
|
||||
writech( L' ');
|
||||
}
|
||||
written += print_max( L"(", 1, 0 );
|
||||
set_color( get_color( HIGHLIGHT_PAGER_DESCRIPTION ), bg);
|
||||
written += print_max( L"(", 1, 0 );
|
||||
written += print_max( c->desc.c_str(), desc_width, 0 );
|
||||
written += print_max( L")", 1, 0 );
|
||||
}
|
||||
|
|
|
@ -77,5 +77,6 @@ complete -c set -n '__fish_set_is_color' -s o -l bold --description 'Make font b
|
|||
# Locale completions
|
||||
complete -c set -n '__fish_is_first_token' -x -a '$__fish_locale_vars' -d 'Locale variable'
|
||||
complete -c set -n '__fish_set_is_locale' -x -a '(locale -a)' -d (_ Locale)
|
||||
complete -c set -s L -l long -d 'Do not truncate long lines'
|
||||
|
||||
complete -c set -u
|
Loading…
Reference in a new issue