zsh-workers
 help / color / mirror / code / Atom feed
From: Frank Terbeck <ft@bewatermyfriend.org>
To: zsh-workers@zsh.org
Subject: PATCH: _tmux: support for the new capture-pane command
Date: Fri,  4 Dec 2009 17:55:25 +0100	[thread overview]
Message-ID: <1259945725-31067-1-git-send-email-ft@bewatermyfriend.org> (raw)
In-Reply-To: <1259703079-26538-1-git-send-email-ft@bewatermyfriend.org>

This patch should apply cleanly on top of the one send in
zsh-workers-27446 in the repository yet.
---
 Completion/Unix/Command/_tmux |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux
index 481a34b..7a64400 100644
--- a/Completion/Unix/Command/_tmux
+++ b/Completion/Unix/Command/_tmux
@@ -65,6 +65,7 @@ _tmux_aliasmap=(
 
     # windows and panes
     breakp      break-pane
+    capturep    capture-pane
     displayp    display-panes
     downp       down-pane
     findw       find-window
@@ -191,6 +192,16 @@ function _tmux-break-pane() {
     _arguments ${args}
 }
 
+function _tmux-capture-pane() {
+    [[ -n ${tmux_describe} ]] && print "Capture the contents of a pane to a buffer" && return
+    local -a args
+    args=(
+        '-b[Choose target buffer]:target buffer:__tmux-buffers'
+        '-t[Choose source pane]:source pane:__tmux-panes'
+    )
+    _arguments ${args}
+}
+
 function _tmux-choose-client() {
     [[ -n ${tmux_describe} ]] && print "Put a window into client choice mode" && return
     __tmux-choose-stuff
-- 
1.6.5.rc2


  reply	other threads:[~2009-12-04 16:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-01 21:31 PATCH: _tmux: Updates for on going development Frank Terbeck
2009-12-04 16:55 ` Frank Terbeck [this message]
2009-12-04 17:02   ` PATCH: _tmux: support for the new capture-pane command Frank Terbeck

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=1259945725-31067-1-git-send-email-ft@bewatermyfriend.org \
    --to=ft@bewatermyfriend.org \
    --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).