Widgets for bindkey

Just to hint you at a few widgets, that are already there…

Tetris

Someone once accused zsh of not being as complete as Emacs, because it lacks Tetris and an adventure game.
I like to use ^T (imagine that!) so in my .zshrc file I have:

autoload -U tetris
zle -N tetris
bindkey ^T tetris

if you are entering the above into your zshrc with vim, you might have to hit ^V before the ^T (because ^T is already mapped to tab in vim) . In Emacs it's C-q C-t

Using your $EDITOR

…to modify your commandline:

autoload -U   edit-command-line
zle -N        edit-command-line
bindkey '\ee' edit-command-line

Multiselecting from menus

### menu selection: pick item but stay in the menu
### bind this to 'ESC RETURN'
    bindkey -M menuselect '\e^M' accept-and-menu-complete 
 
examples/zlewidgets.txt · Last modified: 2007/10/04 11:49 (external edit)