zsh-workers
 help / color / mirror / code / Atom feed
From: sergio <zsh@sergio.spb.ru>
To: zsh-workers@sunsite.dk
Subject: Re: segmentation fault in menu-select
Date: Thu, 29 May 2008 18:47:50 +0400	[thread overview]
Message-ID: <483EC216.7020202@sergio.spb.ru> (raw)
In-Reply-To: <a0600107fc464392dd78f@kba.biglobe.ne.jp>

Jun T. wrote:
> Has this post been answered in other place?
No.

> At 5:40 PM +0400 08.5.13, sergio wrote:
>> % cat .zshrc
>> autoload -Uz compinit
>> compinit
>> zmodload zsh/complist
> 
> You must "zmodload zsh/complist" before compinit.

Thank you wery much (:

When I was setting up zsh first time I have turned off auto_menu because
    it makes behavior like in bash.
Then I have knew about menu completion, and have decided to turn it on
after second <tab>. I've forgotten about auto_menu so I wrote simple widget:

zle -N my-tab
bindkey '\t' my-tab
my-tab(){
        if [[ $LASTWIDGET == $WIDGET ]]; then
                zle menu-select
        else
                zle expand-or-complete-prefix
        fi
}

And now I have two ways to do this:
1) my widget
2) zstyle ':completion:*' menu select=0
   with default auto_menu

-- 
sergio


  reply	other threads:[~2008-05-29 14:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-13 13:40 sergio
2008-05-29 10:44 ` Jun T.
2008-05-29 14:47   ` sergio [this message]
2008-05-29 16:17   ` Bart Schaefer
2008-05-29 16:43     ` sergio

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=483EC216.7020202@sergio.spb.ru \
    --to=zsh@sergio.spb.ru \
    --cc=zsh-workers@sunsite.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).