Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] Add completion for xclip command



From: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>

`xclip` is a utility for getting information in and out of the X11
clipboard and cut buffers.  The descriptions here were mostly pulled
from `xclip -help`
---
 Completion/Unix/Command/_xclip |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 Completion/Unix/Command/_xclip

diff --git a/Completion/Unix/Command/_xclip b/Completion/Unix/Command/_xclip
new file mode 100644
index 0000000..759251c
--- /dev/null
+++ b/Completion/Unix/Command/_xclip
@@ -0,0 +1,14 @@
+#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]'
-- 
1.7.6



Messages sorted by: Reverse Date, Date, Thread, Author