Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _history_complete_word
- X-seq: zsh-workers 16771
- From: Adam Spiers <adam@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: _history_complete_word
- Date: Wed, 6 Mar 2002 14:56:37 +0000
- In-reply-to: <20000426204917.A13452@xxxxxxxxxxxxxxxxxxxxxxx>; from adam@xxxxxxxxxx on Wed, Apr 26, 2000 at 08:49:17PM +0100
- Mail-followup-to: zsh-workers@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200003310814.KAA06936@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20000426204917.A13452@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: Adam Spiers <adam@xxxxxxxxxx>
- Sender: "Adam Spiers,,07775562717,020 88 30 30 35" <adam@xxxxxxxxxxxxxxxxxxxx>
Bringing more dead topics back to life ...
Adam Spiers (adam@xxxxxxxxxx) wrote:
> Just noticed another new quirk with h-c-w now. I have:
>
> zstyle ':completion:*:descriptions' format '%B---- %d%b'
> zstyle ':completion:*:history-words' stop verbose
> zstyle ':completion:*:history-words' remove_all_dups yep
>
> The first time I press M-/ the message `---- history word' appears,
> which means that I have to press it twice to get the first match,
> which shouldn't really happen unless the `list' style is turned on.
> How can this be fixed?
This tiny nit has grown into an itch big enough I need to scratch it.
These days I also have
zstyle ':completion:*:history-words' list false
set, so I don't even get the message appearing. This gives the
impression of the first keystroke just being swallowed. This is
presumably because the
[[ $LASTWIDGET = _history-complete-* &&
( -n "$compstate[old_list]" || -n $_hist_stop ) ]]
condition returns false, so on the first stroke, the matches are
generated but nothing else happens. I'm not sure what the best
solution is.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author