diff options
| author | Shohei YOSHIDA <syohex@gmail.com> | 2022-11-18 10:43:21 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-18 10:43:21 +0900 |
| commit | c6fdfc6cfa2dfaef475a98a25321d403dfb2c508 (patch) | |
| tree | 6236cb9a7bb3b0e66c6112f30c955f30e0906338 /src | |
| parent | Merge pull request #929 from zsh-users/update_lilypond (diff) | |
| parent | Update ibus (diff) | |
| download | zsh-completions-c6fdfc6cfa2dfaef475a98a25321d403dfb2c508.tar zsh-completions-c6fdfc6cfa2dfaef475a98a25321d403dfb2c508.tar.gz zsh-completions-c6fdfc6cfa2dfaef475a98a25321d403dfb2c508.tar.bz2 zsh-completions-c6fdfc6cfa2dfaef475a98a25321d403dfb2c508.tar.lz zsh-completions-c6fdfc6cfa2dfaef475a98a25321d403dfb2c508.tar.xz zsh-completions-c6fdfc6cfa2dfaef475a98a25321d403dfb2c508.tar.zst zsh-completions-c6fdfc6cfa2dfaef475a98a25321d403dfb2c508.zip | |
Merge pull request #933 from zsh-users/update-ibus
Update ibus
Diffstat (limited to 'src')
| -rw-r--r-- | src/_ibus | 37 |
1 files changed, 31 insertions, 6 deletions
@@ -1,6 +1,6 @@ #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. # # Redistribution and use in source and binary forms, with or without @@ -28,7 +28,7 @@ # Description # ----------- # -# Completion script for ibus (https://github.com/ibus/ibus). +# Completion script for ibus 1.5.27 (https://github.com/ibus/ibus). # # ------------------------------------------------------------------------------ # Authors @@ -53,28 +53,45 @@ _arguments -C \ case $state in args) case $line[1] in - engine) + (engine) _arguments \ ":engine:(($(ibus list-engine|sed -ne 's/:/\\\\:/g' -e 's/^ \(\S\+\) - \(.*\)$/"\1:\2"/p')))" \ && 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 \ '--system[show the content of the system registry cache]' \ '--file=[custom registry cache to show]:registry cache:_files' \ + '(- *)--help[Show help message]' \ && return ;; - write-cache) + (write-cache) _arguments \ '--system[save the system registry cache]' \ '--file=[custom registry cache to save]:registry cache:_files' \ + '(- *)--help[Show help message]' \ && return ;; - emoji) + (emoji) _arguments \ '--font=[emoji font]:emoji font: ' \ '--lang=[language of emoji annotations]:language:_language_codes ISO-639-1' \ '--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 ;; esac @@ -82,3 +99,11 @@ case $state in esac 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 |
