From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12413 invoked by alias); 14 Sep 2016 04:26:44 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39311 Received: (qmail 12401 invoked from network); 14 Sep 2016 04:26:44 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.28):SA:0(0.0/5.0):. Processed in 0.346896 secs); 14 Sep 2016 04:26:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:message-id:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=Ha4Fc7pcp19pAEXVPVXpoS8lthY=; b=uUegPG sd6CAZgfXVSuQVRjEhTGg7WYXNlsyrMIOFwiUaxwj140txCSBJUgxuZJDf/ZkDuT NjIagRVrbM+tRUN1gEMyrGzAaDm0uXI6gL3zDpHD7bkVGTsIpDo3TKCC3pejxWqD J0e/sKtVsLAfxm7ONSCt1rCtZjI8/t4/P39nw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-sasl-enc:x-sasl-enc; s=smtpout; bh=Ha4Fc7pcp19pAEXVPVXpoS8lth Y=; b=oFGAINNqkt3KKuirefYqcIafmdDf6MyoTkE4l42p6A5GMPDTvMeJtdvifA jxaZb8b4SHmM0GaWTEaw7NIcxjZ8J4FuTUWfQof7dTQGBUEizI/3RhtPlG/d1m8g zY4LklH2Rbod9HWrCWOFHi6HxhsWFmd8syjvWvMmtFKl3xffY= X-Sasl-enc: w1aprmfpvFYqyAp1vTcbTFxeT/bcDW0+cTGZp7+sBofg 1473827196 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: [PATCH] _tmux-capture-pane: Tweak specifications of -S/-E and description strings. Date: Wed, 14 Sep 2016 04:25:43 +0000 Message-Id: <1473827143-27413-1-git-send-email-danielsh@fujitsu.shahaf.local2> X-Mailer: git-send-email 2.1.4 --- The main change is adding a colon to the -S/-E specs. I wasn't able to verify that -b may be specified multiple times. Cheers, Daniel Completion/Unix/Command/_tmux | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux index 79ba61d..1adb7da 100644 --- a/Completion/Unix/Command/_tmux +++ b/Completion/Unix/Command/_tmux @@ -198,15 +198,15 @@ _tmux-capture-pane() { [[ -n ${tmux_describe} ]] && print "capture the contents of a pane to a buffer" && return _arguments -s \ '-a[use alternate screen]' \ - '-b+[choose target buffer]:target buffer:__tmux-buffers' \ + '(-p)-b+[choose target buffer]:target buffer:__tmux-buffers' \ '-C[escape non-printable characters as octal \\ooo]' \ '-e[include escape sequences for attributes etc]' \ - '-E[specify last line to capture. - means last line of pane]' \ - '-J[join wrapped lines and preserver trailing space]' \ + '-E[specify last line to capture]:line number (- means last line)' \ + '-J[join wrapped lines and preserve trailing space]' \ '-q[ignore errors when trying to access alternate screen]' \ - '-p[print data to stdout]' \ - '-P[only capture that is the beginning of an as-yet incomplete esc seq]' \ - '-S[specify start line to capture. - means first line of scrollback]' \ + '(-b)-p[print data to stdout]' \ + '-P[only capture beginnings of as-yet incomplete escape sequences]' \ + '-S[specify start line to capture]:first line (- means start of scrollback)' \ '-t+[choose source pane]:source pane:__tmux-panes' }