zsh-users
 help / color / mirror / code / Atom feed
* ZSH completion
@ 2011-09-30  5:07 Anonymous bin ich
  2011-09-30 13:39 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Anonymous bin ich @ 2011-09-30  5:07 UTC (permalink / raw)
  To: zsh-users

Hi all!

Currently when I press tab, Zsh automatically completes the word and
shows a list of alternatives, like this:

% cd /m<TAB>
->
% cd /media
/media /mnt

I want Zsh to stop completing until I press tab for a second time.
Something like this:

% cd /m<TAB>
->
% cd /m
/media /mnt

Next tab will start filling in my command. How is it possible?

-- 
Regards


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ZSH completion
  2011-09-30  5:07 ZSH completion Anonymous bin ich
@ 2011-09-30 13:39 ` Bart Schaefer
  2011-09-30 14:12   ` Anonymous bin ich
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2011-09-30 13:39 UTC (permalink / raw)
  To: zsh-users

On Sep 30, 10:37am, Anonymous bin ich wrote:
}
} I want Zsh to stop completing until I press tab for a second time.

setopt bash_auto_list

That will still complete on the first tab if there's exactly one match.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ZSH completion
  2011-09-30 13:39 ` Bart Schaefer
@ 2011-09-30 14:12   ` Anonymous bin ich
  2011-09-30 14:31     ` Anonymous bin ich
  0 siblings, 1 reply; 4+ messages in thread
From: Anonymous bin ich @ 2011-09-30 14:12 UTC (permalink / raw)
  To: zsh-users

On Fri, Sep 30, 2011 at 7:09 PM, Bart Schaefer
<schaefer@brasslantern.com> wrote:
> On Sep 30, 10:37am, Anonymous bin ich wrote:
> }
> } I want Zsh to stop completing until I press tab for a second time.
>
> setopt bash_auto_list
>
> That will still complete on the first tab if there's exactly one match.
>

Thanks, that is exactly what I wanted.

Is there any equivalent for this using zstyle? (Not a problem, just a
OCD compliance in maintaining my zshrc)

Regards,


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ZSH completion
  2011-09-30 14:12   ` Anonymous bin ich
@ 2011-09-30 14:31     ` Anonymous bin ich
  0 siblings, 0 replies; 4+ messages in thread
From: Anonymous bin ich @ 2011-09-30 14:31 UTC (permalink / raw)
  To: zsh-users

On Fri, Sep 30, 2011 at 7:42 PM, Anonymous bin ich <ichbinanon@gmail.com> wrote:
> On Fri, Sep 30, 2011 at 7:09 PM, Bart Schaefer
> <schaefer@brasslantern.com> wrote:
>> On Sep 30, 10:37am, Anonymous bin ich wrote:
>> }
>> } I want Zsh to stop completing until I press tab for a second time.
>>
>> setopt bash_auto_list
>>
>> That will still complete on the first tab if there's exactly one match.
>>
>
> Thanks, that is exactly what I wanted.
>
> Is there any equivalent for this using zstyle? (Not a problem, just a
> OCD compliance in maintaining my zshrc)
>
> Regards,
>

I would also add the 'menucomplete' should be off for the
aforementioned behavior:
setopt NO_menucomplete


-- 
Regards


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-30 14:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-30  5:07 ZSH completion Anonymous bin ich
2011-09-30 13:39 ` Bart Schaefer
2011-09-30 14:12   ` Anonymous bin ich
2011-09-30 14:31     ` Anonymous bin ich

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).