Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _tmux: Correct completions of new-window, split-window, respawn-window, respawn-pane.
- X-seq: zsh-workers 41486
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _tmux: Correct completions of new-window, split-window, respawn-window, respawn-pane.
- Date: Thu, 3 Aug 2017 22:37:41 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=fnoVkJ4oo5Sdrmb9DX wg8I35f9dqKhao2/guqk9tYzw=; b=aKHXSz4u/B/HUlXklK1HI3WD0BiebJqmjU v/Ham41Bn76y6pddG0D420w9rVoZKKDRI1iN+j8mR4kR3M8GnTsc9mSrnjaL/0YJ k+0M4bJUzeJ7il1rN8wPRWnTh5DesJr//bJNvv1/+c3L4ueINPwB1cuCIWXWZkcm LZiWuG7SerpsjJp15dLCHCz1j7uQffUGQt7q4EoA1HXw3+ew3BzkkIn5zV5l4O2P Vro0gMvLdQmtZTIMeVmu2/6RmEzMWWAdmnbAWR9FxAtLpUoDKbRqPvMUUlvW2JYO 5YjLaKnp78TkebACNrKT8VgFDNa5i7pjWQR3hAuyi11OjT6I3fng==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=fnoVkJ4oo5Sdrmb9DX wg8I35f9dqKhao2/guqk9tYzw=; b=TR613vEdr36PdOw4nESYGJ45q9MP2EApok r09Y7PyM17EppuWHYpu4AnnevFaKRDaNav7YGrYCUgQz6nC2XeQCfjZid2xX+X0A 802oVBIde9efz+Q7PgNtTXwx9WHBbPvMp2B6xsECcNwIjigsI6cKsDAETWPWxY5F gO5G0BVFHBiU9reqHI5bkXG21d9WLCetqDfFl6Wgql2kwriwkWnP5HxFLDgsCp4W liJS7hAuGOh6aXmo/Y6RDbPBAjd7gYEThyeAL6b1KsRsHH2AussxnflnqL0oLS3g hEoGSbefsXHdBAFSYam5W63U1he7u5CBlefQjLU+8lqk4u2rE1HQ==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
This follows up to 41467 which patched new-session.
---
Completion/Unix/Command/_tmux | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux
index 5f5bea922..7ef20c666 100644
--- a/Completion/Unix/Command/_tmux
+++ b/Completion/Unix/Command/_tmux
@@ -540,7 +540,7 @@ _tmux-new-window() {
'-n+[specify a window name]:window name' \
'-P[print information about new window after it is created]' \
'-t+[specify target window]:window:__tmux-windows' \
- '*:: :_cmdstring'
+ '*:: :_cmdambivalent'
}
_tmux-next-layout() {
@@ -628,7 +628,7 @@ _tmux-respawn-pane() {
_arguments -s -A "-*" -S \
'-k[kill window if it is in use]' \
'-t+[specify target pane]:pane:__tmux-pane' \
- ':command:_cmdstring'
+ ':command:_cmdambivalent'
}
_tmux-respawn-window() {
@@ -636,7 +636,7 @@ _tmux-respawn-window() {
_arguments -s -A "-*" -S \
'-k[kill window if it is in use]' \
'-t+[specify target window]:window:__tmux-windows' \
- ':command:_cmdstring'
+ ':command:_cmdambivalent'
}
_tmux-rotate-window() {
@@ -855,7 +855,7 @@ _tmux-split-window() {
"-l[define new pane's size]:size" \
"-p[define new pane's size in percent]:size (percentage)" \
'-t+[specify target pane]:pane:__tmux-panes' \
- ':command:_cmdstring'
+ ':command:_cmdambivalent'
# Yes, __tmux-panes is correct here. The behaviour was changed
# in recent tmux versions and makes more sense. Except that
# changing the command's name might annoy users. So it stays like
The behaviour is documented in tmux(1):
Additionally, the new-window, new-session, split-window, respawn-window
and respawn-pane commands allow shell-command to be given as multiple
arguments and executed directly (without ‘sh -c’).
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author