From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10768 invoked by alias); 9 Nov 2016 13:01:04 -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: 39888 Received: (qmail 9992 invoked from network); 9 Nov 2016 13:01:04 -0000 X-Qmail-Scanner-Diagnostics: from nm9-vm7.bullet.mail.ir2.yahoo.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(212.82.96.150):SA:0(0.0/5.0):. Processed in 0.383158 secs); 09 Nov 2016 13:01:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: okiddle@yahoo.co.uk X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.mail.yahoo.com designates 212.82.96.150 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1478696118; bh=hCsbVrYc6RZTAclutzW81sV396vgRrcTd+ydcYpzDuM=; h=From:To:Subject:Date:From:Subject; b=WkdByTd+vFhskOQBz0jX1VUjir9Jx4FdwTMyGjw8UlYSBMcXYdaraNIj65U8BiCEa/59udQvsKGa/h342E45hkuDuYRoxkuuhDn4ySN/QyN7fanIy5vYhDBj+86kDJkPDX4N/fF0lG2antZm8ypznCyItGXPRUnWJgEJoWSn0W5I3WmHXTh3CboAlD1pO18pDHRm7zHlJHvFXvcms1wv4zoir19/5SS6pErNzcmkOuLINlfesvwgrU98RsSFirRzra+R9YKuDaEIPe8BqlMC0h45OuSmmc+ZiDvgYxWOUlq3DundT0n/DcKzzE72nS02qPwwUj0UpJNv+LuuwyC60A== X-Yahoo-Newman-Id: 921525.68830.bm@smtp121.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: TY9CvuMVM1kzxKQjqFtE53wBuhMtdFygDCvWjd0uhw3QmFW xbtMioEE2VZagQylGJn1OmBnTvTuZHc57bKcMHfQvIAoA4j3JLKx3BjErVtF H.vxE6XzmFPH6AzKvcb_PffTbKWPNlHWZ8SoZao0j64xOFnhJLas5LBu5tXH cEUVPoqBspGDC80.vJs.hXVCDvsGG1zWYRutRC0H.1mabEi3p.jM9B4eQFpi QPmce7P8CLi92GAEEAaRuxQO_B6cnBHam03qmza5jrslxNKc3i3XRfsc6Q91 jGQSDqJPMkSZucxNmGE2uiDkwUh92fLUM7Tlj_I9D0_DtvKLrXtAelQRfFaF hb23bwwA.WgXlGi2ofXqwVbZ0yZa5dBvTmNxaaQZiRdUJfA65tGdl53S0vkB ytS1a3zoi2n.SOmj3OSX4_TXrwhoUi695Z_TCAoJ7Q6tyEvds0Pqe8BJwv_U 0QRhvVt2R5aAm.C9SDS5lFRzjLQp_d3FxEpottLZPese1gj0SntS1GAz2jj2 0RrgVLMJsud1ykOc9GFQBGAqmHSaPzMgkmjxalTQ- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- From: Oliver Kiddle To: Zsh workers Subject: PATCH: update tmux completion for 2.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <75623.1478696115.1@hydra.kiddle.eu> Date: Wed, 09 Nov 2016 13:55:15 +0100 Message-ID: <75624.1478696115@hydra.kiddle.eu> This only covers differences that are apparent from changes in the output of tmux list-commands. Also fixed a few typos in comments. Oliver diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux index 1adb7da..5679d78 100644 --- a/Completion/Unix/Command/_tmux +++ b/Completion/Unix/Command/_tmux @@ -153,12 +153,12 @@ _tmux_aliasmap=( # Another thing, the description generation needs, is handling of # $tmux_describe: If that parameter is non-empty, the sub-command function # should only print a description of the sub-command it handles and return -# immidiately after doing so. +# immediately after doing so. # # To add support for a new sub-command, you only have to add a new # _tmux-() function below (preferably alphabetically sorted), that # behaves like described above; and add a alias->command pair in the -# _tmux_aliasmap associative array above (if the comand in fact has an +# _tmux_aliasmap associative array above (if the command in fact has an # alias). The rest should just work[tm]. _tmux-attach-session() { @@ -179,6 +179,7 @@ _tmux-bind-key() { '-n[make the binding work without the need for the prefix key]' \ '-r[the key may repeat]' \ '-t+[specify mode table for the binding]:mode table:__tmux-mode-tables' \ + '-R+[specify repeat count]:repeat count' \ '-T+[specify key table for the binding]:key table' \ '1:key' \ '*:::template:_tmux' @@ -427,8 +428,8 @@ _tmux-list-clients() { } _tmux-list-commands() { - [[ -n ${tmux_describe} ]] && print "list supported sub-commands" && return - __tmux-nothing-else + [[ -n ${tmux_describe} ]] && print "list supported sub-commands" && return + _arguments '-F+[specify format]:format' } _tmux-list-keys() { @@ -837,8 +838,10 @@ _tmux-show-window-options() { } _tmux-source-file() { - [[ -n ${tmux_describe} ]] && print "execute tmux commands from a file" && return - _files + [[ -n ${tmux_describe} ]] && print "execute tmux commands from a file" && return + _arguments \ + "-q[don't report error if path doesn't exist]" \ + '*:path:_directories' } _tmux-split-window() { @@ -939,7 +942,7 @@ _tmux-wait-for() { } # --- Utility functions --- -# They should be called __tmux-*() and kept seperate from the +# They should be called __tmux-*() and kept separate from the # sub-command functions. function __tmux-attributes() { @@ -1119,7 +1122,7 @@ function __tmux-option-guard() { 'window-status-separator:MSG:separator string' 'window-status-style:__tmux-style' 'window-style:__tmux-style' - 'wrap-seach:DESC:on off' + 'wrap-search:DESC:on off' 'xterm-keys:DESC:on off' ) fi