zsh: The zsh/zleparameter Module

Next: The zsh/zprof Module, Previous: The zsh/zle Module, Up: Zsh Modules [Contents][Index]

### 22.32 The zsh/zleparameter Module

The `zsh/zleparameter` module defines two special parameters that can be used to access internal information of the Zsh Line Editor (see Zsh Line Editor).

`keymaps`

  This array contains the names of the keymaps currently defined.

`widgets`

  This associative array contains one entry per widget defined. The name of the widget is the key and the value gives information about the widget. It is either the string ‘`builtin`’ for builtin widgets, a string of the form ‘`user:` name’ for user-defined widgets, where name is the name of the shell function implementing the widget, or it is a string of the form ‘`completion:` type`:`name’, for completion widgets. In the last case type is the name of the builtin widgets the completion widget imitates in its behavior and name is the name of the shell function implementing the completion widget.