From: Marlon Richert <marlon.richert@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: [PATCH] Don't complete dirs as suffix aliases
Date: Wed, 11 May 2022 10:37:11 +0300 [thread overview]
Message-ID: <CAHLkEDtdcUO+Oox91c2VOgUTZHpzufcQeGWvR7JmBm=p3Z59CA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 55 bytes --]
...because suffix aliases don't work with directories.
[-- Attachment #2: 0001-Don-t-complete-dirs-as-suffix-aliases.txt --]
[-- Type: text/plain, Size: 1051 bytes --]
From 7c66e4983fa7149e1912d0390f4303351ad001a3 Mon Sep 17 00:00:00 2001
From: Marlon Richert <marlonrichert@users.noreply.github.com>
Date: Wed, 11 May 2022 10:18:16 +0300
Subject: [PATCH] Don't complete dirs as suffix aliases
---
.vscode/settings.json | 3 +++
Completion/Zsh/Type/_suffix_alias_files | 1 +
2 files changed, 4 insertions(+)
create mode 100644 .vscode/settings.json
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 000000000..640a2c3e3
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,3 @@
+{
+ "search.sortOrder": "fileNames"
+}
\ No newline at end of file
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
next reply other threads:[~2022-05-11 7:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-11 7:37 Marlon Richert [this message]
2022-05-11 8:03 ` Mikael Magnusson
2022-05-11 10:44 ` Marlon Richert
2022-05-11 11:18 ` Peter Stephenson
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='CAHLkEDtdcUO+Oox91c2VOgUTZHpzufcQeGWvR7JmBm=p3Z59CA@mail.gmail.com' \
--to=marlon.richert@gmail.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).