From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2848 invoked by alias); 29 Mar 2012 19:05:21 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16931 Received: (qmail 21359 invoked from network); 29 Mar 2012 19:05:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.213.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=SUX+TWnrWZOJ7WnffHMRF4bVsfJkRwJ1douYTLdy9VI=; b=HOe+LSDyGRGOYq5aEdD88BwOX7ri5u0WVxeKVn+DNxeLn6TOv9BoEH6I0b6rlorkMz CpFwPUIuD/+Id88wizWImlpm8QIZ+ci3d1zo4gyINUD6nzPyp0esIp3IOIze538UwU2Z dLtez3vn4zUG7U7xp//1vpD8557Du5oSnyo4KBA7s8WuW1u1dXs20hwBU/jdm70rfKzX NsgodgEs/t/KH4Cp9zts0FSgBUrAwj+Ywwhj7M6lFIhQYG70fieXUeEuTnWUKxyz9Gr6 xwo4eHzLYrJOwe0hUAa2o2eEOv7txYY59XkqP0WdwPvoRRR0BtWmkaGXY5892eEqivW2 HFNA== MIME-Version: 1.0 Date: Thu, 29 Mar 2012 20:59:25 +0200 Message-ID: Subject: Explicit colons in zstyle From: =?ISO-8859-1?Q?Jesper_Nyg=E5rds?= To: zsh-users@zsh.org Content-Type: text/plain; charset=ISO-8859-1 Is there something special about how a style should be expressed when it relates to "completer"?. I started noticing in some examples from The Book, that completer is not treated exactly the same as other styles. Here's the well know most-recent-file example: zstyle ':completion:most-recent-file::::' completer _menu _files _match zstyle ':completion:most-recent-file:*' file-sort modification zstyle ':completion:most-recent-file:*' hidden all zstyle ':completion:most-recent-file:*' file-patterns '*(.):normal\ files' Is there a reason why the first line contains so many colons? To me it looks like it would be equivalent to the other lines, containing an asterisk. The same pattern in the next example: zstyle ':completion:history-complete::::' completer _history zstyle ':completion:history-complete:*' remove-all-dups true zstyle ':completion:history-complete:*' sort true Then, I saw this, also from The Book: zstyle ':completion::*:::' completer _complete _prefix The text says that the asterisk is necessary to make the _prefix completer match, but I can't understand why the simpler "zstyle ':completion:*' completer _complete _prefix" wouldn't work. I'm obviously missing something. Perhaps someone can enlighten me?