Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion within word
- X-seq: zsh-users 8024
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: completion within word
- Date: Mon, 27 Sep 2004 11:19:51 +0200
- In-reply-to: <20040925003747.241f4a2d@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20040921175108.5a5f7697@xxxxxxxxxxxxxxxxxxxxx> <20040922045511.GA22277@xxxxxxxxxxxxxxxxx> <20040925003747.241f4a2d@xxxxxxxxxxxxxxxxxxxxx>
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
bash_completion.
> 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>
Oliver
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
- *(SRC|DST|TARGET|URL*PATH)*)
+ *(SRC|DST|TARGET|URL*PATH|PATH*URL)*)
_svn_subcmds+=(
'*: : _alternative "files:file:_files" "urls:URL:_svn_urls"'
)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author