zsh-workers
 help / color / mirror / code / Atom feed
1230b6b44dc6f0f729fe41192131245f6a8e1b01 blob 1440 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
#compdef xfconf-query
local curcontext="$curcontext" state state_descr line ret=1
typeset -A opt_args

_arguments -C -s -w : \
  '(-c --channel)'{-c,--channel}'[select channel to query/modify]:channel:( ${$(xfconf-query -l)\:#Channels\:} )' \
  '(-p --property)'{-p,--property}'[select property to query/modify]:property:->property' \
  '(-v --verbose)'{-v,--verbose}'[print property and value (with -l/-m)]' \
  '(-t --type)'{-t,--type}'[specify the property value type]:type:(empty string bool {,u}int{,16,64} double array {,u}char float)' \
  '(-R --recursive)'{-R,--recursive}'[recursively reset properties (with -r)]' \
  + '(operations)' \
  {-h,--help}'[show help options]' \
  {-V,--version}'[show version information]' \
  {-s,--set}'[define the value of a property]:value' \
  {-l,--list}'[list properties or channels]' \
  {-n,--create}'[create a new property]:new property name' \
  {-r,--reset}'[reset property]' \
  {-T,--toggle}'[invert boolean property]' \
  {-m,--monitor}'[monitor a channel for property changes]' && return

case $state in
  property)
    # if -c/--channel is currently on the line, use it to complete an property.
    if [[ -v opt_args[(i)-(c|-channel)] ]]; then
      local expl
      _wanted properties expl property compadd "$@" -- ${(f)"$(xfconf-query -c ${(v)opt_args[(i)-(c|-channel)]} -l)"} && ret=0
    else # just display a message
      _message property && ret=0
    fi
  ;;
esac

return $ret
debug log:

solving 4c727cfe3 ...
found 4c727cfe3 in https://inbox.vuxu.org/zsh-workers/ea622a95-2f9f-0e95-9c30-b7fa70dfc6cf@gmx.com/

applying [1/1] https://inbox.vuxu.org/zsh-workers/ea622a95-2f9f-0e95-9c30-b7fa70dfc6cf@gmx.com/
diff --git a/Completion/Unix/Command/_xfconf-query b/Completion/Unix/Command/_xfconf-query
new file mode 100644
index 000000000..4c727cfe3

Checking patch Completion/Unix/Command/_xfconf-query...
Applied patch Completion/Unix/Command/_xfconf-query cleanly.

index at:
100644 1230b6b44dc6f0f729fe41192131245f6a8e1b01	Completion/Unix/Command/_xfconf-query

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).