Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _tmux: Complete external commands
- X-seq: zsh-workers 37148
 
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
 
- To: zsh-workers@xxxxxxx
 
- Subject: [PATCH] _tmux: Complete external commands
 
- Date: Wed, 18 Nov 2015 23:09:36 +0000
 
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=	daniel.shahaf.name; h=content-type:date:from:message-id	:mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=MDn	5ljLQw2o+ZepjYA2ypCvS3PQ=; b=JY6OcHd1bApMfHqerkfCmhD/UDC3xcIjcEs	Xq/Wu4hwA/yh0cBkH+id/vGkO9FC6Q/9SEEnZqWiGg47GFBaEx2G8rbLFzBAIG0S	HVEQA40w8uSXPv16Avte8RVvl+qHlOSrc4T+5bocv7R6vUTAcUiRPVf79eVbe21/	P206M4IQ=
 
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=	messagingengine.com; h=content-type:date:from:message-id	:mime-version:subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=MD	n5ljLQw2o+ZepjYA2ypCvS3PQ=; b=Ia3h/ik6uPL/qBObhaf2Nx9hVopbrNbKEC	34I/nsDs2Mizj0W38xXNQR94nRmQh7y0oMc5xQnnolV9Rg3BE+qiDyb22iXSCyAt	qudbJZPHYs+TDut1em7Z48FWoJ8v52bvVwXPhYz17YqqALLyMVEF72UCsmV0SVQ8	iLCroAIrE=
 
- 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 makes  'tmux new <TAB>' and 'tmux new tru<TAB>' complete external
commands, previously they just failed to complete anything.
diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux
index 6f2cac7..b1f424c 100644
--- a/Completion/Unix/Command/_tmux
+++ b/Completion/Unix/Command/_tmux
@@ -640,7 +640,7 @@ function _tmux-new-session() {
         '-t[specify target session]:sessions:__tmux-sessions'
         '-x[specify width]:width:_guard "[0-9]#" "numeric value"'
         '-y[specify height]:height:_guard "[0-9]#" "numeric value"'
-        '*:: :_command'
+        '*: :_command'
     )
     _arguments -s ${args}
 }
@@ -657,7 +657,7 @@ function _tmux-new-window() {
         '-n[specify a window name]:window name:'
         '-P[print information about new window after it is created]'
         '-t[specify target window]:windows:__tmux-windows'
-        '*:: :_command'
+        '*: :_command'
     )
     _arguments ${args}
 }
@@ -776,7 +776,7 @@ function _tmux-respawn-pane() {
     args=(
         '-k[kill window if it is in use]'
         '-t[choose target pane]:window:__tmux-pane'
-        '*::command:_command'
+        '*:command:_command'
     )
     _arguments ${args}
 }
@@ -787,7 +787,7 @@ function _tmux-respawn-window() {
     args=(
         '-k[kill window if it is in use]'
         '-t[choose target window]:window:__tmux-windows'
-        '*::command:_command'
+        '*:command:_command'
     )
     _arguments ${args}
 }
@@ -809,7 +809,7 @@ function _tmux-run-shell() {
     args=(
         '-b[run shell command in background]'
         '-t[choose target pane]:pane:__tmux-panes'
-        '*::command:_command'
+        '*:command:_command'
     )
     _arguments ${args}
 }
@@ -1042,7 +1042,7 @@ function _tmux-split-window() {
         # changing the command's name might annoy users. So it stays like
         # this.
         '-t[choose target pane]:window:__tmux-panes'
-        '*:: :_command'
+        '*: :_command'
     )
     _arguments ${args} && return
 }
Messages sorted by:
Reverse Date,
Date,
Thread,
Author