Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Don't complete dirs as suffix aliases



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