From 2fc15d198a993449c11abb5a1a293077c81ebae0 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 5 Dec 2009 19:11:49 +0000 Subject: Frank: 27450: another tmux completion update --- Completion/Unix/Command/_tmux | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Completion') 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 -- cgit 1.4.1