* [PATCH] [RFC] _make: complete _files
@ 2018-01-25 21:40 Daniel Hahler
0 siblings, 0 replies; only message in thread
From: Daniel Hahler @ 2018-01-25 21:40 UTC (permalink / raw)
To: zsh-workers
From: Daniel Hahler <git@thequod.de>
The use case is completing files that are actual targets, generated
using $(wildcard …).
Q: Can this be made to only complete files if make targets and vars
are empty? Does it make sense, or is it good as-is?
---
Completion/Unix/Command/_make | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make
index 890ad1c83..1da865ed0 100644
--- a/Completion/Unix/Command/_make
+++ b/Completion/Unix/Command/_make
@@ -289,7 +289,8 @@ _make() {
else
_alternative \
'targets:make target:compadd -Q -a TARGETS' \
- 'variables:make variable:compadd -S = -F keys -k VARIABLES' && ret=0
+ 'variables:make variable:compadd -S = -F keys -k VARIABLES' \
+ '*:file:_files' && ret=0
fi
esac
--
2.16.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-01-25 21:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-25 21:40 [PATCH] [RFC] _make: complete _files Daniel Hahler
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).