From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: predict-on (Re: Completeinword and ambiguous completions)
Date: Fri, 22 Oct 1999 08:40:08 +0200 (MET DST) [thread overview]
Message-ID: <199910220640.IAA01123@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "Bart Schaefer"'s message of Thu, 21 Oct 1999 16:40:52 +0000
Bart Schaefer wrote:
> On Oct 21, 9:10am, Sven Wischnowsky wrote:
> } Subject: Re: Completeinword and ambiguous completions
> }
> } Bart Schaefer wrote:
> } > zsh% setopt prompt
> } > (feep, cursor stays on "m")
> } >
> } > What I'd like is, in the first of those cases, the cursor doesn't stay
> } > on the "m" but rather moves to the end of the unambiguous prefix, so that
> } > I can immediately start menu completion for the rest of the word.
> }
> } compmatchers=('' 'r:|=*')
> }
> } Is that good enough?
>
> It seems to work some, but not all, of the time. For example:
>
> zagzig<4> setopt promptt
>
> If the cursor is on the second `t' there are two possible completions
> (promptsubst and promptpercent). So when the cursor is on the `m' I
> expect TAB to move it to the second `t'. Instead I get a feep.
Ugh. The completion code doesn't try to do that at all, right.
You can try the (probably expensive):
compmatchers=('r:|?=* r:|=*')
of course. This works for me at least with your example. Another way
would be to try completion again and again while moving the
cursor. But that would even be more expensive.
> Maybe the following will explain why I'm interested in this. I want to
> press TAB in the middle of a predictivly-inserted line to jump ahead to
> the next spot where I might want to edit.
Almost-DWIM?
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~1999-10-22 7:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-22 6:40 Sven Wischnowsky [this message]
1999-10-22 10:16 ` Bart Schaefer
-- strict thread matches above, loose matches on Subject: below --
1999-10-22 12:29 Sven Wischnowsky
1999-10-21 7:10 Completeinword and ambiguous completions Sven Wischnowsky
1999-10-21 16:40 ` PATCH: predict-on (Re: Completeinword and ambiguous completions) 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=199910220640.IAA01123@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/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).