Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
${(k)widgets} v. 'zle -la'
- X-seq: zsh-users 21729
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: ${(k)widgets} v. 'zle -la'
- Date: Tue, 05 Jul 2016 04:57:58 +0000
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
$ zsh -f
% bindkey zzzzzz foobar
% zle -la | grep foobar
% print -rl -- ${(k)widgets} | grep foobar
foobar
%
Is it intentional that 'foobar' is listed by 'zle -la' but not by
${(k)widgets}? I'd expected those two to enumerate the same set of
widgets.
Observations:
- The manual speaks of "all existing widgets" for the former and of "all
defined widgets" for the latter.
- The thingy has the 'DISABLED' flag:
(gdb) p *(Thingy)thingytab->getnode2(thingytab, "foobar")
$1 = {next = 0x7ffff5e73688 <thingies+5640>, nam = 0x6fb210 "foobar", flags = 1, rc = 1, widget = 0x0, samew = 0x0}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author