zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zzapper <zsh@rayninfo.co.uk>
Cc: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: cd /u/N/v/ tab expansion
Date: Thu, 7 Apr 2022 13:11:00 -0700	[thread overview]
Message-ID: <CAH+w=7ZtQVCJDCe0OAXPKRUa8zU1kgDMDu-y82BvHmOk+reYRw@mail.gmail.com> (raw)
In-Reply-To: <860877fd-ec69-0323-3f2a-8a40e96e6aee@rayninfo.co.uk>

On Wed, Apr 6, 2022 at 5:41 AM zzapper <zsh@rayninfo.co.uk> wrote:
>
> cd /u/N/v/  # tab expands to
>
> cd /usr/NX/var/

This is what _path_files does.

> This works well if /u/N/v/ is unique and oddly or not all if not..

What's odd about it?  The behavior should be that the unambiguous part
at the left is completed, and then the cursor stops at the first
ambiguous point.  For example, if I do:

% ls /u/l/b<TAB>

I get, with cursor after the "l" (over the third "/"):

% ls /usr/l/b

If I hit TAB again:

% ls /usr/l/b
libexec/  local/

When does this fail for you?

> Q1) where is the doc for this?

Under the entry for _path_files.

> Has something in my setup overloaded this?

No way for us to tell.  Have you tried using the ctrl+x question-mark
binding to get a completion traceback?


  reply	other threads:[~2022-04-07 20:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-06 12:40 zzapper
2022-04-07 20:11 ` Bart Schaefer [this message]
2022-04-07 20:20   ` zzapper
2022-04-07 23:11     ` Bart Schaefer
2022-04-08  9:53       ` zzapper
2022-04-08 17:57         ` Bart Schaefer
2022-04-08 10:22       ` david rayner
2022-04-08 18:09         ` Bart Schaefer
2022-04-10  1:04       ` Tomasz Pala
2022-04-10 14:32         ` Tomasz Pala
2022-04-10 16:27           ` Tomasz Pala
2022-04-10 16:32             ` Tomasz Pala
2022-04-10 17:45               ` Tomasz Pala
2022-04-10 18:05                 ` Tomasz Pala
2022-04-16 14:17                   ` Tomasz Pala
2022-04-17  3:00           ` Bart Schaefer
2022-04-17 16:17             ` Tomasz Pala
2022-04-17 18:15               ` Bart Schaefer
2022-04-17 18:44                 ` Bart Schaefer
2022-04-17 18:32               ` Bart Schaefer

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='CAH+w=7ZtQVCJDCe0OAXPKRUa8zU1kgDMDu-y82BvHmOk+reYRw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    --cc=zsh@rayninfo.co.uk \
    --subject='Re: cd /u/N/v/ tab expansion' \
    /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

Code repositories for project(s) associated with this 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).