From: "Andreas Kusalananda Kähäri" <andreas.kahari@abc.se>
To: Pier Paolo Grassi <pierpaolog@gmail.com>
Cc: Zsh-Users List <zsh-users@zsh.org>
Subject: Re: completion of path with double slashes
Date: Wed, 26 Jan 2022 10:48:14 +0100 [thread overview]
Message-ID: <YfEY3qFpCM4cU/zc@box> (raw)
In-Reply-To: <CAP+y1xCopm5ODfNnMHUd2g-zaS91bVim3rLL2Waqfvfq70ArdA@mail.gmail.com>
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
.
next prev parent reply other threads:[~2022-01-26 9:49 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 [this message]
2022-01-26 11:27 ` Pier Paolo Grassi
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=YfEY3qFpCM4cU/zc@box \
--to=andreas.kahari@abc.se \
--cc=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).