* PATCH: _tmux: Updates for on going development
@ 2009-12-01 21:31 Frank Terbeck
2009-12-04 16:55 ` PATCH: _tmux: support for the new capture-pane command Frank Terbeck
0 siblings, 1 reply; 3+ messages in thread
From: Frank Terbeck @ 2009-12-01 21:31 UTC (permalink / raw)
To: zsh-workers
Here's an update for the current changes in tmux's development.
It adds few command aliases, window options and a new sub-command.
Regards, Frank
---
Completion/Unix/Command/_tmux | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux
index 10a1eb2..481a34b 100644
--- a/Completion/Unix/Command/_tmux
+++ b/Completion/Unix/Command/_tmux
@@ -57,6 +57,7 @@ _tmux_aliasmap=(
new new-session
refresh refresh-client
rename rename-session
+ showmsgs show-messages
source source-file
start start-server
suspendc suspend-client
@@ -105,7 +106,8 @@ _tmux_aliasmap=(
showw show-window-options
# environment
- #no aliases so far in this category
+ setenv set-environment
+ showenv show-environment
# status line
confirm confirm-before
@@ -334,6 +336,7 @@ function _tmux-display-message() {
[[ -n ${tmux_describe} ]] && print "Display a message in the status line" && return
local -a args
args=(
+ '-p[Print message to stdout]'
'-t[Choose a target client]:clients:__tmux-clients'
'*:: :->msg'
)
@@ -923,6 +926,12 @@ function _tmux-show-environment() {
_arguments ${args}
}
+function _tmux-show-messages() {
+ [[ -n ${tmux_describe} ]] && print "Show client"\'"s message log" && return
+ args=('-t[Choose target client]:client:__tmux-clients')
+ _arguments ${args}
+}
+
function _tmux-show-options() {
[[ -n ${tmux_describe} ]] && print "Show session options" && return
local -a args
@@ -1178,6 +1187,7 @@ function __tmux-option-guard() {
'message-attr:__tmux-attributes'
'message-bg:__tmux-colours'
'message-fg:__tmux-colours'
+ 'message-limit:'${int_guard}
'mouse-select-pane:DESC:on off'
'prefix:MSG:comma-seperated key list'
'repeat-time:'${int_guard}
@@ -1233,7 +1243,9 @@ function __tmux-option-guard() {
'window-status-current-attr:__tmux-attributes'
'window-status-current-bg:__tmux-colours'
'window-status-current-fg:__tmux-colours'
+ 'window-status-current-format:MSG:status format string'
'window-status-fg:__tmux-colours'
+ 'window-status-format:MSG:status format string'
'xterm-keys:DESC:on off'
)
fi
@@ -1280,6 +1292,7 @@ function __tmux-options() {
'message-attr:Set status line message attributes'
'message-bg:Set status line message background colour'
'message-fg:Set status line message foreground colour'
+ 'message-limit:Set size of message log per client'
'mouse-select-pane:Make mouse clicks select window panes'
'prefix:Comma seperated line of keys accepted as prefix key'
'repeat-time:Time for multiple commands without prefix-key presses'
@@ -1376,7 +1389,9 @@ function __tmux-window-options() {
'window-status-current-attr:Set status line attributes for active window'
'window-status-current-bg:Set status line background for active window'
'window-status-current-fg:Set status line foreground for active window'
+ 'window-status-current-format:Set status line format for active window'
'window-status-fg:Set status line foreground for a window'
+ 'window-status-format:Set status line format for all but the active window'
'xterm-keys:Generate xterm-style function key sequences'
)
_describe -t tmux-window-options 'tmux window option' tmux_window_options
--
1.6.5.rc2
^ permalink raw reply [flat|nested] 3+ messages in thread
* PATCH: _tmux: support for the new capture-pane command
2009-12-01 21:31 PATCH: _tmux: Updates for on going development Frank Terbeck
@ 2009-12-04 16:55 ` Frank Terbeck
2009-12-04 17:02 ` Frank Terbeck
0 siblings, 1 reply; 3+ messages in thread
From: Frank Terbeck @ 2009-12-04 16:55 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: PATCH: _tmux: support for the new capture-pane command
2009-12-04 16:55 ` PATCH: _tmux: support for the new capture-pane command Frank Terbeck
@ 2009-12-04 17:02 ` Frank Terbeck
0 siblings, 0 replies; 3+ messages in thread
From: Frank Terbeck @ 2009-12-04 17:02 UTC (permalink / raw)
To: zsh-workers
Frank Terbeck <ft@bewatermyfriend.org>:
> This patch should apply cleanly on top of the one send in
> zsh-workers-27446 in the repository yet.
That should have read "which isn't in the repository yet"...
But turns out that's wrong. So, this one is just another update. :)
Regards, Frank
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-04 17:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-01 21:31 PATCH: _tmux: Updates for on going development Frank Terbeck
2009-12-04 16:55 ` PATCH: _tmux: support for the new capture-pane command Frank Terbeck
2009-12-04 17:02 ` Frank Terbeck
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).