summary refs log tree commit diff
path: root/Completion/X/Command/_xclip
blob: 0f689a705d46971c686aea93dbf8f84c5ae53c49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#compdef xclip

_arguments \
  '(-i -in -o -out)'{-i,-in}'[read text into X selection (default)]' \
  '(* -i -in -o -out)'{-o,-out}'[print selection to standard output]' \
  '(-o -out -f -filter -quiet)'{-f,-filter}'[copy input additionally to standard output]' \
  {-l,-loops}'[number of selection requests to wait before exiting]:number' \
  {-t,-target}'[specify data format]:format:($(_call_program targets xclip -o -t TARGETS))' \
  {-d,-display}'[X display to connect to]:display:_x_display' \
  '(-)'{-h,-help}'[display usage information]' \
  '(-selection)-selection[selection to access]:selection:(primary secondary clipboard buffer-cut)' \
  "-noutf8[operate in legacy, non-Unicode, mode]" \
  '(-r -rmlastnl)ipq{-r,-rmlastnl}'[remove the last newline character if present]' \
  '(-)-version[display version information]' \
  '(-quiet -verbose)-silent[errors only, run in background]' \
  "(-silent -verbose)-quiet[run in foreground, show what's happening]" \
  '(-silent -quiet)-verbose[running commentary]' \
  '(-o -out)*:input file:_files'