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

Attachment: commit-adb4d73
Description: Binary data

_______________________________________________
Bash-completion-devel mailing list
Bash-completion-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel

Reply via email to