[Bash-completion-devel] Fwd: Make completion improvement

Tristan Wibberley tristan.wibberley at gmail.com
Fri Mar 6 19:55:22 UTC 2015


Hi,

The attached patch to "make" completion will offer hidden targets if the
commandline has a partial completion for it (ie, the user has begun typing
the hidden rule name).

Rules in subdirectories continue to be considered hidden until the partial
completion begins the hidden filename within the subdirectory, ie:

Makefile:
############
.hiddenfile1:
.hiddendir1/:
.hiddendir1/.hiddenfile2:
../file3:
############

$ make <tab><tab>
no completions offered
$ make .<tab><tab>
offers ../ .hiddenfile1, .hiddendir1 and .hiddendir1/
$ make ../<tab><tab>
offers ../file3
$ make .hiddendir1/<tab><tab>
no completions offered
$ make .hiddendir1/.<tab><tab>
offers .hiddenfile2

I found this very useful when working with multiple directories and
intermediate hidden marker files. Please apply.

Regards,
Tristan Wibberley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20150306/17c0d570/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: commit-adb4d73
Type: application/octet-stream
Size: 1091 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20150306/17c0d570/attachment.obj>


More information about the Bash-completion-devel mailing list