From 61c1f842a40a65771e3d6677751dcb6d3ff6c139 Mon Sep 17 00:00:00 2001 From: cb Date: Sat, 16 Mar 2024 16:04:48 +0100 Subject: [PATCH] completion: groups/numbers --- completion/zsh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/completion/zsh b/completion/zsh index 8af5d91..fa0b8b3 100644 --- a/completion/zsh +++ b/completion/zsh @@ -2,14 +2,16 @@ # zsh completion for ubanner -_arguments -s -S \ - {-h,--help}'[show help]' \ - '--version[show version information and exit]' \ - '--list-fonts[print list of available font faces]' \ +_arguments -S \ '--trim[trim leading/trailing empty lines]' \ {-f,--font}'[use this fontface]:fontname:->fonts' \ - {-s,--font-size}'[font size in pixels (default: 28)]' \ - {-S,--full-screen}'[max font size to fit terminal window]' + + '(fs)' \ + {-s,--font-size}'[font size in pixels]: :_numbers -d28 -l14 -m280' \ + {-S,--full-screen}'[max font size to fit terminal window]' \ + + '(excl)' \ + {-h,--help}:'[show help]' \ + '--version:[show version information and exit]' \ + '--list-fonts:[print list of available font faces]' case "$state" in fonts)