From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3127 invoked by alias); 20 Nov 2015 03:36:20 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37164 Received: (qmail 2511 invoked from network); 20 Nov 2015 03:36:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=N5N2rtNngiK4SoPjhCq+isMEVYU=; b=17yqy0 CkaFg0ReJyJQpvcujOTFDVhm6a9ltXP/kLIg1scF2CC8EhfyACNj0nlvo3OktqB+ D/2CKQqzaRzHqwpmqairq8NAlU7RlIJGqNHC55GIQfTKeTOXIQnSN6GXQMIr8cp9 9Sgd7QiR8kWPj/EDbJa2QxXB0v8JyQycYluro= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=N5N2rtNngiK4SoPjhCq+isMEVYU=; b=rV9nH 0agFLAlUddO7vmAnwlLLFvcnsBZ5LxU0kvNmjij9r7FANqLQRqTga52pMJ75aNna 4tYE3SpElCa4FmLy+j4OuBoj+9jLcw92Zjd4cjxih3Y1b8N4P+2ZkUuXB+Li9QbW /XafD80L8HSD5bWo1kD6uyvXFXjT+kbvf428rw= X-Sasl-enc: agHZ1NUm+G6KrP8vumV3WzpIiG5UzUEwG9SfMUtQVU3N 1447990577 Date: Fri, 20 Nov 2015 03:36:15 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: [PATCH] _tmux: Complete external commands Message-ID: <20151120033615.GC3955@tarsus.local2> References: <20151118230936.GF2070@tarsus.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151118230936.GF2070@tarsus.local2> User-Agent: Mutt/1.5.21 (2010-09-15) Daniel Shahaf wrote on Wed, Nov 18, 2015 at 23:09:36 +0000: > --- > This makes 'tmux new ' and 'tmux new tru' complete external > commands, previously they just failed to complete anything. s/_command/_cmdstring/ was also needed, and with that made, it works even without the s/::/:/, so that's what I'll commit. diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux index 6f2cac7..d218cc3 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' + '*:: :_cmdstring' ) _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' + '*:: :_cmdstring' ) _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:_cmdstring' ) _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:_cmdstring' ) _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:_cmdstring' ) _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' + '*:: :_cmdstring' ) _arguments ${args} && return }