commit
c6fdfc6cfa
37
src/_ibus
37
src/_ibus
|
@ -1,6 +1,6 @@
|
||||||
#compdef ibus
|
#compdef ibus
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Copyright (c) 2017 Github zsh-users - http://github.com/zsh-users
|
# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
# Description
|
# Description
|
||||||
# -----------
|
# -----------
|
||||||
#
|
#
|
||||||
# Completion script for ibus (https://github.com/ibus/ibus).
|
# Completion script for ibus 1.5.27 (https://github.com/ibus/ibus).
|
||||||
#
|
#
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# Authors
|
# Authors
|
||||||
|
@ -53,28 +53,45 @@ _arguments -C \
|
||||||
case $state in
|
case $state in
|
||||||
args)
|
args)
|
||||||
case $line[1] in
|
case $line[1] in
|
||||||
engine)
|
(engine)
|
||||||
_arguments \
|
_arguments \
|
||||||
":engine:(($(ibus list-engine|sed -ne 's/:/\\\\:/g' -e 's/^ \(\S\+\) - \(.*\)$/"\1:\2"/p')))" \
|
":engine:(($(ibus list-engine|sed -ne 's/:/\\\\:/g' -e 's/^ \(\S\+\) - \(.*\)$/"\1:\2"/p')))" \
|
||||||
&& return
|
&& return
|
||||||
;;
|
;;
|
||||||
read-cache)
|
(start|restart)
|
||||||
|
_arguments \
|
||||||
|
'--type=[start or restart daemon type with direct or systemd type]: :(direct systemd)' \
|
||||||
|
'--file=[start or restart daemon with SYSTEMD_SERVICE file]: :_files' \
|
||||||
|
'--verbose[Show debug message]' \
|
||||||
|
'(- *)--help[Show help message]' \
|
||||||
|
&& return
|
||||||
|
;;
|
||||||
|
(read-cache)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--system[show the content of the system registry cache]' \
|
'--system[show the content of the system registry cache]' \
|
||||||
'--file=[custom registry cache to show]:registry cache:_files' \
|
'--file=[custom registry cache to show]:registry cache:_files' \
|
||||||
|
'(- *)--help[Show help message]' \
|
||||||
&& return
|
&& return
|
||||||
;;
|
;;
|
||||||
write-cache)
|
(write-cache)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--system[save the system registry cache]' \
|
'--system[save the system registry cache]' \
|
||||||
'--file=[custom registry cache to save]:registry cache:_files' \
|
'--file=[custom registry cache to save]:registry cache:_files' \
|
||||||
|
'(- *)--help[Show help message]' \
|
||||||
&& return
|
&& return
|
||||||
;;
|
;;
|
||||||
emoji)
|
(emoji)
|
||||||
_arguments \
|
_arguments \
|
||||||
'--font=[emoji font]:emoji font: ' \
|
'--font=[emoji font]:emoji font: ' \
|
||||||
'--lang=[language of emoji annotations]:language:_language_codes ISO-639-1' \
|
'--lang=[language of emoji annotations]:language:_language_codes ISO-639-1' \
|
||||||
'--partial-match[match annotations with a partial string]' \
|
'--partial-match[match annotations with a partial string]' \
|
||||||
|
'(- *)--help[Show help message]' \
|
||||||
|
&& return
|
||||||
|
;;
|
||||||
|
(im-module)
|
||||||
|
_arguments \
|
||||||
|
'--type=[Set im-module TYPE]: :(gtk2 gtk3 gtk4)' \
|
||||||
|
'(- *)--help[Show help message]' \
|
||||||
&& return
|
&& return
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -82,3 +99,11 @@ case $state in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
# Local Variables:
|
||||||
|
# mode: Shell-Script
|
||||||
|
# sh-indentation: 2
|
||||||
|
# indent-tabs-mode: nil
|
||||||
|
# sh-basic-offset: 2
|
||||||
|
# End:
|
||||||
|
# vim: ft=zsh sw=2 ts=2 et
|
||||||
|
|
Loading…
Reference in New Issue