zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
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	[thread overview]
Message-ID: <1473827143-27413-1-git-send-email-danielsh@fujitsu.shahaf.local2> (raw)

---
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'
 }
 


                 reply	other threads:[~2016-09-14  4:26 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=1473827143-27413-1-git-send-email-danielsh@fujitsu.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --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).