From b73d71105eaca6ae001a3e836ab08406ef188789 Mon Sep 17 00:00:00 2001 From: Andrew Main Date: Mon, 3 Sep 2001 01:39:19 +0000 Subject: 15734: zle -K option to select a keymap, and zle KEYMAP parameter to examine the current selection. --- Doc/Zsh/zle.yo | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Doc/Zsh/zle.yo') diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo index d39c610f4..4e5a4dc1d 100644 --- a/Doc/Zsh/zle.yo +++ b/Doc/Zsh/zle.yo @@ -305,6 +305,7 @@ xitem(tt(zle) tt(-C) var(widget) var(completion-widget) var(function)) xitem(tt(zle) tt(-R) [ tt(-c) ] [ var(display-string) ] [ var(string) ... ]) xitem(tt(zle) tt(-M) var(string)) xitem(tt(zle) tt(-U) var(string)) +xitem(tt(zle) tt(-K) var(keymap)) xitem(tt(zle) tt(-I)) xitem(tt(zle) var(widget) tt([ -n) var(num) tt(]) tt([ -N ]) var(args) ...) item(tt(zle))( @@ -394,6 +395,14 @@ the last string pushed onto the stack will be processed first. However, the characters in each var(string) will be processed in the order in which they appear in the string. ) +item(tt(-K) var(keymap))( +Selects the keymap named var(keymap). An error message will be displayed if +there is no such keymap. + +This keymap selection affects the interpretation of following keystrokes +within this invocation of ZLE. Any following invocation (e.g., the next +command line) will start as usual with the `tt(main)' keymap selected. +) item(tt(-I))( Unusually, this option is only useful em(outside) ordinary widget functions. It invalidates the current zle display in preparation for output; usually @@ -519,6 +528,10 @@ vindex(HISTNO) item(tt(HISTNO) (integer))( The current history number. ) +vindex(KEYMAP) +item(tt(KEYMAP) (scalar))( +The name of the currently selected keymap. +) vindex(KEYS) item(tt(KEYS) (scalar))( The keys typed to invoke this widget, as a literal string. -- cgit 1.4.1