zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: Re: Again something strange with select/match
Date: Mon, 20 Mar 2000 10:25:09 +0100 (MET)	[thread overview]
Message-ID: <200003200925.KAA09355@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Andrej Borsenkow"'s message of Fri, 17 Mar 2000 21:12:29 +0300


Andrej Borsenkow wrote:

> With all (hopefully :-) current patches:
> 
> bor@itsrm2% zstyle -L
> zstyle ':completion:*' completer _oldlist _complete _match
> zstyle :completion::approximate: max-errors 3
> zstyle ':completion:*' menu 'select=0'
> zstyle ':completion:*::::default' list-colors ''
> zstyle ':completion:*:match:*' original yes
> zstyle ':completion:*:match:*' insert-unambiguous yes
> zstyle ':completion:*:paths' cursor yes
> zstyle ':completion:*:oldlist' list _match
> zstyle ':completion:*' list-rows-first yes
> zstyle ':completion:*:*:files' matcher 'r:|[.-]=**'
> zstyle ':completion:*:cd:*' matcher 'r:|[.-]=**'
> zstyle ':completion:*' group-name ''
> zstyle ':completion:*:descriptions' format 'Completing %d'
> bor@itsrm2% l /u2/pub/unix/zsh/patches/3.1.6-dev-19/<10000->TAB
> bor@itsrm2% l /u2/pub/unix/zsh/patches/3.1.6-dev-19/10006
> Completing file
> 10006       10009       10011       10013       10017       10025     
> 10028       10029       10040       10041       10044       10058     
> .......... long list ...
> 
> Menu completion without menu selection.
> 
> Do I miss something obvious again?

No, I did. A value of automenu-unambiguous may start menu completion,
so the test-pattern wasn't correct.

> BTW, what's the way to sosrt matches in numerical order?

`setopt numericglobsort' should do the job.

Bye
 Sven

diff -ru ../z.old/Completion/Core/_main_complete Completion/Core/_main_complete
--- ../z.old/Completion/Core/_main_complete	Mon Mar 20 10:04:36 2000
+++ Completion/Core/_main_complete	Mon Mar 20 10:21:34 2000
@@ -133,7 +133,7 @@
 
   _menu_style=( "$_menu_style[@]" "$_def_menu_style[@]" )
 
-  if [[ "$compstate[insert]" = *menu ]]; then
+  if [[ "$compstate[insert]" = *menu* ]]; then
     if [[ -n "$_menu_style[(r)no-select*]" ]]; then
       unset SELECTMIN
     else

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


                 reply	other threads:[~2000-03-20  9:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200003200925.KAA09355@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).