mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
e813883367 added “missing” short command
line options to footclient.
Except they weren’t missing; they were intentionally missing short
options and only supported long options.
This commit makes the new/missing short options “official”, by adding
documentation, zsh completions and including them in usage().
25 lines
1.5 KiB
Text
25 lines
1.5 KiB
Text
#compdef footclient
|
|
|
|
_arguments \
|
|
-s -S -C \
|
|
'(-t --term)'{-t,--term}'[value to set the environment variable TERM to (foot)]:term:->terms' \
|
|
'(-T --title)'{-T,--title}'[initial window title]:()' \
|
|
'(-a --app-id)'{-a,--app-id}'[value to set the app-id property on the Wayland window to (foot)]:()' \
|
|
'(-m --maximized)'{-m,--maximized}'[start in maximized mode]' \
|
|
'(-F --fullscreen)'{-F,--fullscreen}'[start in fullscreen mode]' \
|
|
'(-L --login-shell)'{-L,--login-shell}'[start shell as a login shell]' \
|
|
'(-w --window-size-pixels)'{-w,--window-size-pixels}'[window WIDTHxHEIGHT, in pixels (700x500)]:size_pixels:()' \
|
|
'(-W --window-size-chars)'{-W,--window-size-chars}'[window WIDTHxHEIGHT, in characters (not set)]:size_chars:()' \
|
|
'(-s --server-socket)'{-s,--server-socket}'[override the default path to the foot server socket ($XDG_RUNTIME_DIR/foot-$WAYLAND_DISPLAY.sock)]:server:_files' \
|
|
'(-H --hold)'{-H,--hold}'[remain open after child process exits]' \
|
|
'(-l --log-colorize)'{-l,--log-colorize}'[enable or disable colorization of log output on stderr]:logcolor:(never always auto)' \
|
|
'(-v --version)'{-v,--version}'[show the version number and quit]' \
|
|
'(-h --help)'{-h,--help}'[show help message and quit]' \
|
|
':command: _command_names -e' \
|
|
'*::command arguments: _dispatch ${words[1]} ${words[1]}'
|
|
|
|
case ${state} in
|
|
terms)
|
|
_values 'terminal definitions' $(find /usr/share/terminfo -type f -printf "%f\n")
|
|
;;
|
|
esac
|