zsh-users
 help / color / mirror / code / Atom feed
From: Jesper Holmberg <jeho5791@student.uu.se>
To: Zsh-users List <zsh-users@sunsite.dk>
Subject: Re: Problem with complete-all
Date: Mon, 16 Aug 2004 08:46:10 +0200	[thread overview]
Message-ID: <20040816064610.GQ1191@localhost> (raw)
In-Reply-To: <14903.1092389588@trentino.logica.co.uk>

* On Fri Aug 13, Oliver Kiddle wrote:
> It seems we need to fix the example in the manual.
> 
> > zle -C all-matches complete-word _generic
> > bindkey '^Xx' all-matches
> > zstyle ':completion:all-matches:*' old-matches only
> > zstyle ':completion:all-matches::::' completer _all_matches
> 
> Try changing the last style to add _complete after _all_matches:
>   zstyle ':completion:all-matches::::' completer _all_matches _complete
> It needs _complete there to actually generate some matches.

Thank you for your reply, Oliver. It still doesn't work exactly as I'd
expect, though.

This is what I now have in my .zshrc:

zle -C all-matches complete-word _generic
bindkey '^Xx' all-matches
zstyle ':completion:all-matches:*' old-matches only
zstyle ':completion:all-matches::::' completer _all_matches _complete
zstyle ':completion:all-matches:*' insert true
zstyle ':completion:all-matches:*' file-patterns \
    '%p:globbed-files' '*(-/):directories' '*:all-files'


Now, if I for example have added the files "file" and "text", I have to
press '^Xx' twice before the added files are inserted after 'cvs add '.
Pressing it once doesn't have any effect.

If I have added the files "file1" and "file2", pressing '^Xx' once gives
me "file" on the command line, i.e. it completes the unique part, just
like complete-word usually does. Pressing '^Xx' another time gives me both
file-names.

How can I change this so that '^Xx' inserts all the files the first time
it is used?

Jesper


  parent reply	other threads:[~2004-08-16  6:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-13  7:45 Jesper Holmberg
2004-08-13  9:33 ` Oliver Kiddle
2004-08-13  9:58   ` Oliver Kiddle
2004-08-16  6:46   ` Jesper Holmberg [this message]
2004-08-17 10:28     ` Jesper Holmberg

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=20040816064610.GQ1191@localhost \
    --to=jeho5791@student.uu.se \
    --cc=zsh-users@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).