From c18fe510f4321210ddb450cdfa08fbf2bae8a580 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 25 Jan 2018 22:38:20 +0100 Subject: 42327: _make: complete _files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The use case is completing files that are actual targets, generated using $(wildcard …). Q: Could this be made to only complete files if make targets and vars are empty? --- ChangeLog | 4 ++++ Completion/Unix/Command/_make | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 741fcad60..59430a64d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2018-02-11 Daniel Hahler + + * 42327: Completion/Unix/Command/_make: _make: complete _files. + 2018-02-08 Daniel Shahaf * unposted: Completion/Unix/Command/_subversion: Support 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 -- cgit 1.4.1