zsh-users
 help / color / mirror / code / Atom feed
From: Pier Paolo Grassi <pierpaolog@gmail.com>
To: Pier Paolo Grassi <pierpaolog@gmail.com>,
	Zsh-Users List <zsh-users@zsh.org>
Subject: Re: completion of path with double slashes
Date: Wed, 26 Jan 2022 12:27:03 +0100	[thread overview]
Message-ID: <CAP+y1xCqRbUryoq11wwBbd31bPq+_aaWu-3aZVXTz8C98uCgYg@mail.gmail.com> (raw)
In-Reply-To: <YfEY3qFpCM4cU/zc@box>

[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]

Great, thanks!

Il giorno mer 26 gen 2022 alle 10:48 Andreas Kusalananda Kähäri <
andreas.kahari@abc.se> ha scritto:

> On Wed, Jan 26, 2022 at 10:02:37AM +0100, Pier Paolo Grassi wrote:
> > Hello, I noticed that having a double slash in a path that I then try to
> > complete, ie:
> >
> > /home/paul//ab<TAB>
> >
> > requires a significant more amount of time to execute than the same path
> > without double slashes.
> > I tried this with zsh -f, and it does not reproduce.
> > Is there a setting that comes to mind that can be responsible for this?
> > thanks
> >
> > Pier Paolo Grassi
>
> If you use compinit in your .zshrc, then // in a path will be treated as
> /*/ when doing filename completion.
>
> Look for "squeeze-slashes" in the zshcompsys(1) manual.
>
>         squeeze-slashes
>                If set to `true', sequences of slashes in filename paths
>                (for example in `foo//bar') will be treated as a single
>                slash.  This is the usual behaviour of UNIX paths.
>                However, by default the file completion function behaves
>                as if there were a `*' between the slashes.
>
> --
> Andreas (Kusalananda) Kähäri
> SciLifeLab, NBIS, ICM
> Uppsala University, Sweden
>
> .
>
-- 
Pier Paolo Grassi

[-- Attachment #2: Type: text/html, Size: 1821 bytes --]

      reply	other threads:[~2022-01-26 11:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-26  9:02 Pier Paolo Grassi
2022-01-26  9:48 ` Andreas Kusalananda Kähäri
2022-01-26 11:27   ` Pier Paolo Grassi [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=CAP+y1xCqRbUryoq11wwBbd31bPq+_aaWu-3aZVXTz8C98uCgYg@mail.gmail.com \
    --to=pierpaolog@gmail.com \
    --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).