Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slow completion
- X-seq: zsh-users 17680
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Slow completion
- Date: Fri, 08 Mar 2013 00:38:29 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1362699510; bh=W/qmW26Rf+FGuZw/dVpk3U9mS/Kp89sengOZnY0Af/M=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:In-reply-to:From:References:To:Subject:MIME-Version:Content-Type:Content-ID:Date:Message-ID; b=WFj5U/upvjc75IONJXwAjKhm+Z62bUTOErx7xNLSzIslnOjuP7BknBjFl9/a/0K+03RB1YmFxHL62vmdZSCOGaNBa+tLO+P07d2vSOLn+p6LiEQG1FZLkI7pWS6XFdsSbgST4zRD6tW9rfgRQ407GPCWRtHnTpG8y0zX5b1ss0o=
- In-reply-to: <130307080445.ZM12249@torch.brasslantern.com>
- 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: <kh8d4u$mbp$1@ger.gmane.org> <130307080445.ZM12249@torch.brasslantern.com>
Bart wrote:
> It might be possible to get the effect of completion_strip_exe with a
> matcher style, something like (though I don't think this works)
>
> zstyle ':completion:*:-command-:*' matcher \
> 'R:|.[eE][xX][eE]=.[eE][xX][eE]'
To strip the .exe, you need to use a lowercase r, map the .exe to
nothing and use the .exe as the command-line pattern rather than as the
the anchor: 'r:.[eE][xX][eE]|='
Unfortunately, this somehow only seems to work when you position the
cursor before the .exe which makes it fairly useless. Note this will
only work at all when completeinword is set otherwise the .exe is not
seen by the matching at all. The same effect applies on the left but
that matters less because the cursor is usually going to be after a left
anchored pattern. I think this is a bug.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author