From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@zsh.org>
Subject: PATCH: xclip completion
Date: Wed, 03 Oct 2012 16:38:05 +0200 [thread overview]
Message-ID: <876.1349275085@thecus.kiddle.eu> (raw)
The xclip completion wasn't completing files and it will take input from
listed files instead of standard input. This also adds the -t and -f
options.
Oliver
Index: Completion/X/Command/_xclip
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_xclip,v
retrieving revision 1.1
diff -u -r1.1 _xclip
--- Completion/X/Command/_xclip 22 Jan 2012 20:04:01 -0000 1.1
+++ Completion/X/Command/_xclip 3 Oct 2012 14:35:32 -0000
@@ -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'
reply other threads:[~2012-10-03 14:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=876.1349275085@thecus.kiddle.eu \
--to=okiddle@yahoo.co.uk \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).