about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-12-05 19:11:49 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-12-05 19:11:49 +0000
commit2fc15d198a993449c11abb5a1a293077c81ebae0 (patch)
tree7de5dfa50483876a42dc1976897c647809db9367
parente6e2c7f3f809e4b6a4055593118105c90b142d03 (diff)
downloadzsh-2fc15d198a993449c11abb5a1a293077c81ebae0.tar.gz
zsh-2fc15d198a993449c11abb5a1a293077c81ebae0.tar.xz
zsh-2fc15d198a993449c11abb5a1a293077c81ebae0.zip
Frank: 27450: another tmux completion update
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Unix/Command/_tmux11
2 files changed, 17 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5cefc9f3c..e6fe30cf0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-05  Peter Stephenson  <p.w.stephenson@ntlworld.com>
+
+	* frank: 27450: b/Completion/Unix/Command/_tmux: another
+	update.
+
 2009-12-05  Clint Adams  <clint@zsh.org>
 
 	* Frank Terbeck: 27458: Completion/Unix/Command/_tmux:
@@ -12441,5 +12446,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4833 $
+* $Revision: 1.4834 $
 *****************************************************
diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux
index 60092ae88..7d8adf76f 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