zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Separate cdpath elements in path-directories completion
Date: Sun, 19 Feb 2023 19:54:26 -0800	[thread overview]
Message-ID: <CAH+w=7ad7JEGEj8Tb8dW+D6OkaF5qo+9-KC0m7a7oKZE3fTAfw@mail.gmail.com> (raw)
In-Reply-To: <80615-1676825482.916080@qR5n.Nmed.T67B>

On Sun, Feb 19, 2023 at 8:52 AM Oliver Kiddle <opk@zsh.org> wrote:
>
> Also, I would probably suggest expanding the description to "directory
> in $elem" instead of just "$elem" as here:
>
> > +        alt+=( "path-directories-$elem:$elem:_path_files -W $elem -/" )

Strictly speaking unless $elem is always a full path, the argument to
-W should be enclosed in parens like:

alt+=( "path-directories-$elem:directories in $elem:_path_files -W
'($elem)' -/" )

> I'm also unsure about including $elem in the tag. It will probably work
> fine but doesn't exactly conform with usual tag naming conventions.
> Perhaps just an index for the position in the cdpath array. Does anyone
> else have an opinion on that?

If just an index it would be hard to e.g. colorize based on location.
But I don't have any suggestions for a different transformation.


  reply	other threads:[~2023-02-20  3:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20230218211046.vj3p4k7y6uraytpo@singold.localdomain>
     [not found] ` <CAH+w=7bhjyXVgMb7esyg-1n0SbBAZogUrCVg34wFB64z3aUimg@mail.gmail.com>
     [not found]   ` <20230219100217.f2mcniygwgbtxvwf@singold.localdomain>
2023-02-19 16:51     ` Oliver Kiddle
2023-02-20  3:54       ` Bart Schaefer [this message]
2023-02-21 22:12       ` Sebastian Stark
2023-02-24 12:57         ` Oliver Kiddle

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=7ad7JEGEj8Tb8dW+D6OkaF5qo+9-KC0m7a7oKZE3fTAfw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@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).