
ZLE on the value of a shell parameter and the zle command manipulatesĮditing widgets and allows command line access to ZLE commands from withinīindkey -l bindkey -d bindkey -D keymap. The bindkeyĬommand manipulates keymaps and key bindings the vared command invokes The ZLE module contains three related builtin commands. The global keymap that shares the same prefix can still apply so forĮxample the binding of ^Xa in the global keymap will be unaffectedīy the binding of ^Xb in the local keymap. AnĮxample of this occurs with the binding of iw in viopp as this Sequence in the global keymap that is a prefix of that sequence. If a key sequence is defined in a local keymap, it will hide a key

Override a binding in the main keymap but all keys that are not In an incremental search mode, a binding in the isearch keymap will Modes a local keymap allows for some keys to be customised. While for normal editing a single keymap is used exclusively, in many In user-defined widgets with the read-command widget, described in This input can itself invoke further replacement strings, but in order toĭetect loops the process will be stopped if there are twenty such replacementsĪ key sequence typed by the user can be turned into a command name for use When such a sequence is read, the replacement string is pushed back as input,Īnd the command reading process starts again using these fake keystrokes. Shell acts as if ? were typed and resets the input state.Īs well as ZLE commands, key sequences can be bound to other strings, by using Second or a subsequent byte is not read within the timeout period, the Multibyte encoding known to the operating system is supported.) If the Requires that the shell was compiled with multibyte mode enabled typicallyĪlso the locale has characters with the UTF-8 encoding, although any Multibyte character string when it is in the appropriate mode. The key timeout is also applied when ZLE is reading the bytes from a There is no timeout if the prefix string is not This timeout is defined by the KEYTIMEOUT parameter In this case ZLE will wait a certain time to see if more charactersĪre typed, and if not (or they don’t match any longer string) it willĮxecute the binding. That is bound to some command and is also a prefix of a longer bound string. When ZLE is reading a command from the terminal, it may read a sequence Means you deleted the main keymap, and you should put it back. This is deliberately not pleasant to use if you are using it, it safe’ keymap, each single key is bound to self-insert,Įxcept for ^J (line feed) and ^M (return) which are bound to accept-line. If that keymap doesn’t exist, it will use ‘. When the editor starts up, it will select the ‘ main’ keymap. Options provide a convenient way to override this default choice. Starts up then it will be ‘ viins’, otherwise it will be ‘ emacs’. If one of the VISUAL orĮDITOR environment variables contain the string ‘ vi’ when the shell In addition to these names, either ‘ emacs’ or ‘ viins’ isĪlso linked to the name ‘ main’. In the future other special keymaps may be added users shouldĪvoid using names beginning with ‘. However, it can be linked to other names, which canīe removed. It can never be altered, and the nameĬan never be removed. If all of a keymap’s names are deleted, it disappears.īindkey can be used to manipulate keymap names. There can be any number of keymaps at any time, and each keymap has one Number of times, unless otherwise noted below this is implementedĪrgumentsfor some other ways the numeric argument can be modified.Ī keymap in ZLE contains a set of bindings between key sequencesĪnd ZLE commands. Generally the numericĪrgument causes the next command entered to be repeated the specified This canīy default be entered in emacs mode by holding the alt key and typingĪ number, or pressing escape before each digit, and in vi command modeīy typing the number before entering a command. In many places, references are made to the numeric argument. IrascibleĬonservatives will wish to know that all highlighting may be disabled by Mark (as set with set-mark-command in Emacs mode, or by visual-modeīy default consult this reference for more information.

Of special characters and the region between the cursor and the The parameter zle_highlight is also used by the line editor see The parameters BAUD, COLUMNS, and LINES are also used by the "emacs", the ZLE option will be unset by default.

Is similar to ksh, and uses no termcap sequences. Mode, is used if TERM is invalid or incapable of moving theĬursor up, or if the SINGLE_LINE_ZLE option is set. Terminal type that can move the cursor up. It only works if the TERM parameter is set to a valid The first, multiline mode, is theĭefault. If the ZLE option is set (which it is by default in interactive shells)Īnd the shell input is attached to the terminal, the user
