Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Expanding global aliases on key press
- X-seq: zsh-users 13878
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Expanding global aliases on key press
- Date: Tue, 24 Feb 2009 20:29:30 -0800
- In-reply-to: <090224200319.ZM8314@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <go20an$4p6$1@xxxxxxxxxxxxx> <237967ef0902241753q12de7bbdj238d4d6b33707805@xxxxxxxxxxxxxx> <090224200319.ZM8314@xxxxxxxxxxxxxxxxxxxxxx>
On Feb 24, 8:03pm, Bart Schaefer wrote:
}
} Normally the context would be :completion:expand-alias-word:::: but
} because you're invoking a completion widget from inside an ordinary
} widget the usual context setup is lost and you get just :completion::
} instead.
Just to clarify ... this is something odd about _expand_alias, not
about completion widgets in general. _expand_alias is for reasons
I've forgotten examining $funcstack to decide how (whether) to set
up the context, and when called in a nested fashion that way, the
$funcstack is always non-empty. This has something to do with it
being both a completer function (as in, it can be named in your
completers zstyle) and a widget function; there might be a better way
to determine which way it's being invoked.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author