Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: widget special PREFIX variable and cursor position with complete_in_word
- X-seq: zsh-users 18452
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: widget special PREFIX variable and cursor position with complete_in_word
- Date: Fri, 14 Feb 2014 22:36:25 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1392413786; bh=ACEuPbDXmGT7Jssxbzhb3tGmcC7u7G2FdUEvdwUckwg=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=rEo7wreT8mgYPPdy1ZQ53f+m0y2gnrDe08763ksDYhJCsPx3vWklAQuv96M4VJLoLnNMBNi22h36YjDST/rp5IJVhXYyYafRyysnNgGSycRkcLvEujfXSA0JVQ/c5GXfmUPvz/2o9AzFrgFaUBF7BgwKg/meKGJgCuw36Gfdipk=
- In-reply-to: <ldlddn$s7r$1@ger.gmane.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <ldgnl5$fo8$1@ger.gmane.org> <140212214707.ZM25929@torch.brasslantern.com> <ldii13$jg7$1@ger.gmane.org> <140213092531.ZM26966@torch.brasslantern.com> <ldj21h$9dj$1@ger.gmane.org> <140213223438.ZM27375@torch.brasslantern.com> <13128.1392379014@thecus.kiddle.eu> <ldl3u8$302$1@ger.gmane.org> <13979.1392388765@thecus.kiddle.eu> <ldlddn$s7r$1@ger.gmane.org>
Yuri D'Elia wrote:
> I wasn't sure before, but it doesn't seem to work for me.
> I see the function being called and ZLS_COLORS being set, but no
> colorization happens.
That's odd. Perhaps something in your setup conflicts with it. It'd be
interesting to know what.
I've just tried and it works for me starting from zsh -f:
zsh -f
zmodload zsh/complist
autoload -U compinit
fpath+=( /path/where/you've/put/the/function )
zstyle ':completion:*::::' completer _show_ambiguity _complete
compinit
setopt noh<tab>
Do those steps work for you?
It isn't going to help if it doesn't work but I forgot the :q for
the last character of the prefix and it seems to be worth making the
pattern case-insensitive with (#i) as case-insensitive completion
matching is common:
ZLS_COLORS+=":=(#i)${prefix[1,-2]//?/(}${prefix[1,-2]//(#m)?/$MATCH:q|)}${prefix[-1]:q}(#b)(?|)*==4"
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author