zsh-workers
 help / color / mirror / code / Atom feed
From: Felix Rosencrantz <f_rosencrantz@yahoo.com>
To: zsh-workers <zsh-workers@sunsite.auc.dk>
Subject: Re: Bug w/matching control + feature request
Date: Thu, 11 Jan 2001 20:47:37 -0800 (PST)	[thread overview]
Message-ID: <20010112044737.10207.qmail@web10408.mail.yahoo.com> (raw)

Thanks for adding the cycle-completion-positions code, Sven!  Though, there
seems to be a problem with it.

Check out
% zsh -f
host% autoload -U compinit cycle-completion-positions ; compinit -D 
host% compdef _tst tst
host% _tst () {compadd -M 'r:|[.,_-]=** r:[^0-9]||[0-9]=**' _cd a_c ab_c
_b_cde_c}
host% zle -N cycle cycle-completion-positions
host% bindkey "^T" cycle
host% tst _c<TAB><^T>

After the tab it lists the possible completions.  But the value of
$_lastcomp[insert_positions] is 4:6:6, which causes the
cycle-completion-positions to get stuck at cursor position 6.  Not sure
if there should be unique values or cycle-completion-positions should
be able to deal with the duplicate values.

There are other cases, where there is only one value but there should be
multiple positions.  But I wasn't sure if it would be possible to list all the
positions. (Use same input but with
	_tst () {compadd -M 'r:|[.,_-]=** r:[^0-9]||[0-9]=**' _cd a_c ab_c }

and the positions are 6:6, and there should be two positions.)

-FR.


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/


             reply	other threads:[~2001-01-12  4:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-12  4:47 Felix Rosencrantz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-01-15  5:04 Felix Rosencrantz
2001-01-11  9:56 Sven Wischnowsky
2001-01-09  8:02 Sven Wischnowsky
2000-12-30 22:58 Felix Rosencrantz

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=20010112044737.10207.qmail@web10408.mail.yahoo.com \
    --to=f_rosencrantz@yahoo.com \
    --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).