Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Don't complete dirs as suffix aliases
- X-seq: zsh-workers 50307
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] Don't complete dirs as suffix aliases
- Date: Mon, 30 May 2022 14:51:12 +0300
- Archived-at: <https://zsh.org/workers/50307>
- In-reply-to: <CAH+w=7br7e8qhV4um-PTdCk2uih8EPZMUGzDDBBd5qsnU0+o-g@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDtdcUO+Oox91c2VOgUTZHpzufcQeGWvR7JmBm=p3Z59CA@mail.gmail.com> <CAH+w=7br7e8qhV4um-PTdCk2uih8EPZMUGzDDBBd5qsnU0+o-g@mail.gmail.com>
On Thu, May 12, 2022 at 8:44 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> What's the .vscode/settings.json file in the patch?
Oh, whoops, that shouldn't be there. Here's a new version of the patch.
From 43c3a62e747b50c3b7454902f737d4e6bbdc2845 Mon Sep 17 00:00:00 2001
From: Marlon Richert <marlonrichert@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 11 May 2022 10:18:16 +0300
Subject: [PATCH] Don't complete dirs as suffix aliases
---
Completion/Zsh/Type/_suffix_alias_files | 1 +
1 file changed, 1 insertion(+)
diff --git a/Completion/Zsh/Type/_suffix_alias_files b/Completion/Zsh/Type/_suffix_alias_files
index 1c2c8ebb5..de3e2b9d9 100644
--- a/Completion/Zsh/Type/_suffix_alias_files
+++ b/Completion/Zsh/Type/_suffix_alias_files
@@ -16,6 +16,7 @@ else
tmpa=(${(kq)saliases})
pat="*.(${(kj.|.)tmpa})"
fi
+pat+='(#q^/)'
# _wanted is called for us by _command_names
_path_files "$@" -g $pat
--
2.36.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author