From: zzapper <zsh@rayninfo.co.uk>
To: zsh-users@zsh.org
Subject: Re: Multipart autocomplete, zstyle, and cd
Date: Mon, 6 Dec 2021 08:53:50 +0000 [thread overview]
Message-ID: <d9a7b644-2c8b-0ac5-c5c2-87d348b95ff2@rayninfo.co.uk> (raw)
In-Reply-To: <CAH+w=7aKAunPLHaPWDBXr3WPzhtDcYoF5jQ+Dyg0gnrdc2fxnA@mail.gmail.com>
On 06/12/2021 04:47, Bart Schaefer wrote:
> On Sun, Dec 5, 2021 at 5:29 PM Zach Riggle <zachriggle@gmail.com> wrote:
>> _wanted -V popular-directories expl 'popular directories' \
>> compadd -Q -a dirs
>> #-------------------------- COMPLETION ENHANCEMENT ---------------------------
>> This completion works well, though I would like to know how to get the
>> completion to not do word-separated completion and upon e.g.
>>
>> $ foobarbaz bi<tab>
>>
>> ... to not add a space, but instead allow further specification e.g.,
> You should add the -f option to compadd, so that it knows the results
> are file names (which includes directories). I suspect you also do
> not really need/want the -Q option.
>
> You should also NOT include the trailing slash in the values returned
> from zshz-cd-completion. Either -f will cause compadd to figure that
> out, or you should be passing the options -S "/" and -q to compadd (if
> the strings returned by zshz-cd-completion might not refer to existing
> directories).
Ah the dreaded 'optionally' unwanted trailing space when I want to do two stage completion.
Will see if this advice can help me
zzapper
prev parent reply other threads:[~2021-12-06 8:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-06 1:28 Zach Riggle
2021-12-06 4:47 ` Bart Schaefer
2021-12-06 8:53 ` zzapper [this message]
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=d9a7b644-2c8b-0ac5-c5c2-87d348b95ff2@rayninfo.co.uk \
--to=zsh@rayninfo.co.uk \
--cc=zsh-users@zsh.org \
/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).