Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Proposed _history completer
- X-seq: zsh-workers 10991
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: Proposed _history completer
- Date: Fri, 28 Apr 2000 09:20:41 +0200 (MET DST)
- In-reply-to: "Bart Schaefer"'s message of Fri, 28 Apr 2000 05:25:22 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> On Apr 27, 12:44pm, Sven Wischnowsky wrote:
> } Subject: Re: Proposed _history completer
> }
> } Maybe we could make $historywords an assoc with the words as keys and
> } the values giving information about that word. Something like the
> } history number where it comes from plus information about the context
> } (command-context, of some kind).
>
> That can't work, can it? What if the same word appears in different
> places in the history, or even different places in the same command?
> The keys would have to be made unique somehow, or else you have to
> have a complicated format for compounding the value.
Ouch. Of course ;-}
> I think having a way to chop a string into shell words -- something like
> what you did for copy-prev-shell-word -- would be more effective.
Ah, when I wrote that I had planned to allow this anyway and then
forgot... some parameter flag, most likely. Hm, s and S are taken,
so are c and C. We could use `=' but that would probably be too
irritating.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author