Make zsh completion headings bold

This commit is contained in:
Kovid Goyal 2021-06-25 18:05:18 +05:30
parent d8d5a8fada
commit 23ea3745ca
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -162,7 +162,7 @@ def fish_input_parser(data: str) -> ParseResult:
def zsh_output_serializer(ans: Completions) -> str:
lines = []
for description, matches in ans.match_groups.items():
cmd = ['compadd', '-U', '-J', shlex.quote(description), '-X', shlex.quote(description)]
cmd = ['compadd', '-U', '-J', shlex.quote(description), '-X', shlex.quote('%B' + description + '%b')]
if description in ans.no_space_groups:
cmd += ['-S', '""']
if description in ans.files_groups: