Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completion within word

On 25 Sep, "Matthias B." wrote:

> Okay, I've tried it for a while and I'm not happy with it. I have the same
> problems with it as with the bash programmable completion project. Little
> annoyances everywhere such as "svn import k<TAB>" refusing to complete on
> files in the current directory and there's also the complexity. I feel

The patch below fixes that particular annoyance. If you let us know
about any other little annoyances, we can either fix them or let you
know how to configure zsh to avoid them. I've tended to believe that we
have fewer half-hearted attempts at completion functions than

> So I'm going to live with basic builtin completion. Any chances of getting
> the above completion to work with it? If not, I'd be grateful for pointers
> into the zsh code so that I can see if I can fix it myself. 

I'm not entirely sure how to fix that from the builtin completion using
only compctl. I've not used it in a while. It would be possible using a
standalone completion widget function which specifically looks for that
situation. I'd suggest you just try to use the $path array form of $PATH
instead because it is easier to manipulate. Instead of the your line,
you can do:

  path=( $path /bi<tab>
or in zsh 4.2:
  path+=( /bi<tab>


Index: Completion/Unix/Command/_subversion
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_subversion,v
retrieving revision 1.6
diff -u -r1.6 _subversion
--- Completion/Unix/Command/_subversion	14 Apr 2004 08:17:53 -0000	1.6
+++ Completion/Unix/Command/_subversion	27 Sep 2004 09:10:21 -0000
@@ -84,7 +84,7 @@
       case $_svn_subcmd_usage in
 	    '*: : _alternative "files:file:_files" "urls:URL:_svn_urls"'

Messages sorted by: Reverse Date, Date, Thread, Author