summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2012-10-07 12:03:17 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2012-10-07 12:03:17 +0000
commit674bd0bd86a1ecd4c420f0c2e74e8a720b4eb119 (patch)
tree22adc833d695bab85461fa0aa7f7b412446ab362
parent76ac7bf74265440be6177c060fe72a074caa6d4f (diff)
downloadzsh-674bd0bd86a1ecd4c420f0c2e74e8a720b4eb119.tar.gz
zsh-674bd0bd86a1ecd4c420f0c2e74e8a720b4eb119.zip
complete files and -t and -f options for xclip
-rw-r--r--ChangeLog6
-rw-r--r--Completion/X/Command/_xclip25
2 files changed, 19 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 9b026ff6b..661f15767 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-10-07 Oliver Kiddle <opk@zsh.org>
+
+ * 30714: Completion/X/Command/_xclip: complete files,-t,-f for xclip
+
2012-10-05 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 30716: Src/options.c: IGNORECLOSEBRACES should be an emulation
@@ -226,5 +230,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5735 $
+* $Revision: 1.5736 $
*****************************************************
diff --git a/Completion/X/Command/_xclip b/Completion/X/Command/_xclip
index 759251c28..ff131f3b1 100644
--- a/Completion/X/Command/_xclip
+++ b/Completion/X/Command/_xclip
@@ -1,14 +1,17 @@
#compdef xclip
_arguments \
- '(-i -in -o -out)'{-i,-in}'[Read text into X selection]' \
- '(-i -in -o -out)'{-o,-out}'[Print selection to standard out]' \
- {-l,-loops}'[Number of selection requests to wait before exiting]:number:' \
- {-d,-display}'[X display to connect to]:X11 display:' \
- '(-)'{-h,-help}'[Usage information]' \
- '(-selection)-selection[Selection to access]:selection:(primary secondary clipboard buffer-cut)' \
- $'-noutf8[Use old Unicode, don\'t treat text as UTF-8]' \
- '(-)-version[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]'
+ '(-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]" \
+ '(-)-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'