Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

${(k)widgets} v. 'zle -la'



$ 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