Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: Non-patch: zle argument handling
- X-seq: zsh-workers 6741
- From: "Andrej Borsenkow" <borsenkow.msk@xxxxxx>
- To: "Sven Wischnowsky" <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>, <zsh-workers@xxxxxxxxxxxxxx>
- Subject: RE: Non-patch: zle argument handling
- Date: Mon, 21 Jun 1999 12:33:00 +0400
- Importance: Normal
- In-reply-to: <199906210825.KAA19961@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
>
> Andrej Borsenkow wrote:
>
> > Related question - is it possible to use minibuffer from
> user-defined widgets?
> > Is it useful? Or it can be implemented with current changes to read?
>
> My little isearch example did that: with a combination of `read -k'
> and `zle -R "search: $str"' (the argument of `-R' is displayed in the
> statusline).
>
>
You cannot edit input with read -k.
bor@itsrm2:~%> foo() {
function> read -k 4 test
function> print $#test
function> }
bor@itsrm2:~%> foo
12^H^H4
So, either widget should make all edtiting itself, or we need some way to
dispatch on input key sequences (to call normal editing widget) or (better yet)
to use minibuffer with builtin editing.
/andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author