From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10700 invoked by alias); 28 Feb 2013 06:27:50 -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: 31080 Received: (qmail 3784 invoked from network); 28 Feb 2013 06:27:48 -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 _netblocks.google.com designates 209.85.216.44 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=KXv+Sxah2S4rLgIssZHt7DJOZlV6dgUH1poCupItpys=; b=XkUtVVstE+DWoyPI9CwVLD+2wPKmS8ePGbhGtRm1Q5CKQPHA3euLKwedIIWf36mARC X4KcL2ufDDWwk7VktbOYwd6ZKw+ZlVGTe5kGI1aSAXWuJ9+wMp91TgixCjxg+JJEnCzh KSnOpCKj4oTF0hExtTqbTL9x3xH6e5Hb6vlGuROH+j/GZynHhksGJzFWHFf1GdYsa7vS TAjsj7GtA7t1f764es3Ld6xg11Ab9IL4G9Wuy8Z0anmKa5ZldMjtSUYSifspNL/zkjA2 YopzmfWKOHzvFCxlzwf+4QG18Duo5gfiB5cHhLwr+qZ8Zye8ewwP8Z5zh5reAlgHt2QQ 0zqQ== MIME-Version: 1.0 X-Received: by 10.224.33.208 with SMTP id i16mr12306348qad.45.1362032864509; Wed, 27 Feb 2013 22:27:44 -0800 (PST) Date: Thu, 28 Feb 2013 01:27:44 -0500 Message-ID: Subject: zsh completer _approximate completer From: joe M To: zsh-workers@zsh.org Content-Type: text/plain; charset=ISO-8859-1 Hello, I notice that the _approximate completer does not respect the group order. I want it to show the original on top of the corrections list and specified it with: zstyle ':completion:*:approximate:*' max-errors 1 numeric zstyle ':completion:*:approximate:*' group-order original corrections # '-e' is needed to get the argument evaluated each time this is called # this argument to max-errors allows one error in 10 characters. # And if you want the number of errors allowed by # _approximate to increase with the length of what # you have typed so far: zstyle -e ':completion:*:approximate:*' \ max-errors 'reply=($((($#PREFIX+$#SUFFIX)/3))numeric)' ---------------------------------- test sample output: g test 01-colors.zsh -- { g test *. } -- -- corrections (errors: 1) -- 01-colors.zsh 40-completion.zsh all_opts todo 01-prezto-helper.zsh 40-completion.zsh.original all_opts_bang todo.txt 05-appearance.unused_zsh 40-directory.zsh bart.theme trapd00r.theme 06-zex.zsh-does-not-work 50-bindkeys.zsh colorize* zex-zsh/ 10-syntax.zsh.trapd00r 50-functions.zsh colorize.c zprofile.20110925 20-abbrevations.zsh 60-git.zsh compdef/ zprofile.20120319 20-bookmarks.zsh 70-autojump.zsh compdef.disable/ zprofile.20130124 20-exports.zsh 70-simpleprompt.zsh .git/ zprofile.latest 20-history.zsh 90-syntax.zsh .gitignore zprofile.root 20-setopts.zsh 90-syntax.zsh.zsh-syntax-highlighting history_words_to_commands.patch zprofile.simple 40-alias-global.zsh 91-history-substring-search.zsh mikachu-dot-zshrc zsh_history.joe 40-alias-suffix.zsh 92-auto-fu.zsh prezto/ zshrc 40-alias.zsh 99-startup.zsh start-zsh-with-cmd.exp* -- original -- *. Is this expected behaviour? Thanks Joe