zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-users@zsh.org
Subject: Re: Slow completion
Date: Fri, 08 Mar 2013 00:38:29 +0100	[thread overview]
Message-ID: <13519.1362699509@thecus.kiddle.eu> (raw)
In-Reply-To: <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


  parent reply	other threads:[~2013-03-07 23:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-06 21:40 Thorsten Kampe
2013-03-07 10:22 ` Peter Stephenson
2013-03-07 11:44   ` Mikael Magnusson
2013-03-07 12:08     ` Peter Stephenson
2013-03-07 16:04 ` Bart Schaefer
2013-03-07 20:33   ` Thorsten Kampe
2013-03-07 23:38   ` Oliver Kiddle [this message]
2013-03-08 15:45     ` joe M
2013-03-11 16:21       ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13519.1362699509@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).