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 18450
- 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 15:39:25 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1392388766; bh=xA2TCh/1h0+CNo62TT6hmAN0sQMIMMYtsoDZZ1XOShY=; 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=cCYFppJfZJgGtMurNAON40+hnvUl08BFWmZEzYPViZbJT/LPs2MPUydxkbPuuy2byyKlVyFWjxde9gkFpGeHl6MgCO40/uWQ1fXXFjeAPH1PULbDwSM/vs3DKulFUVRFvkIiMoAggzI3AN4zkL2eANpz4VhyCd0NTp1u8dEkuLU=
- In-reply-to: <ldl3u8$302$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>
Yuri D'Elia wrote:
> Where would be the correct place to hook this completer to work for all
> completitions (not only file names)?
Include it in the 'completer' style:
zstyle ':completion:*::::' completer _show_ambiguity _complete
You'll have this style set already, probably with a long list of
functions such as _expand, _approximate, _prefix etc. It needs to appear
early in the list.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author