zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [PATCH] Don't complete dirs as suffix aliases
Date: Wed, 11 May 2022 12:18:47 +0100 (BST)	[thread overview]
Message-ID: <2085138709.292906.1652267927454@mail2.virginmedia.com> (raw)
In-Reply-To: <CAHLkEDt2tmYezgO=nZBkpW91QSFD0Bec6BftwpWynoFOSRm9nA@mail.gmail.com>

> On 11 May 2022 at 11:44 Marlon Richert <marlon.richert@gmail.com> wrote:
> On Wed, May 11, 2022 at 11:03 AM Mikael Magnusson <mikachu@gmail.com> wrote:
> >
> > On 5/11/22, Marlon Richert <marlon.richert@gmail.com> wrote:
> > > ...because suffix aliases don't work with directories.
> >
> > In what sense do they not work?
>
> % zsh -f
> % alias -s marlon=echo
> % mkdir hello.marlon
> % hello.marlon
> zsh: command not found: hello.marlon

So I think you need to change the line you added to

[[ -o autocd ]] || pat+='(#q^/)'

Not a particularly obvious use case, but presumably best not to break it.

pws


  reply	other threads:[~2022-05-11 11:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-11  7:37 Marlon Richert
2022-05-11  8:03 ` Mikael Magnusson
2022-05-11 10:44   ` Marlon Richert
2022-05-11 11:18     ` Peter Stephenson [this message]
2022-05-12  5:44 ` Bart Schaefer
2022-05-30 11:51   ` Marlon Richert

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=2085138709.292906.1652267927454@mail2.virginmedia.com \
    --to=p.w.stephenson@ntlworld.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).