Zave Command [Z]
Saves or recalls a string of Qedit commands.
Z [ = [commands] ]
(Default: if no commands, Z= prompts)
Use Z= to save some Qedit commands for later use. Use ";" to combine multiple Qedit commands. If Qedit does not find anything after the "=", it reads the commands from the terminal. Qedit saves the commands and you can execute them again at any time by typing Z. There is only one "Z" in Qedit. When you enter a new Z string, you lose the existing one.
When you type Z with no = sign, Qedit inserts the saved commands in place of Z. The total length of the Z string plus the remainder of the original line must be 80 characters or less.
Examples
/z= {redefine value of Z string}
list */last {you enter new line of commands}
/z {use Z to mean "list */last"}
/z=l*-5/*+5 {define z as "list vicinity"}
/fq "trish";z {find string and display around it}
/z=f"`|1@"(p); a*=*; c"`".ent "
{find string that matches pattern; copy line}
{change a string in the new line}
Notes
You can display and edit the current Z string only if you entered the Z string at the same time as the Z= command.
/z=q "hi"
/z
hi
/redo z=
/Z=q "hi"
hello"
/z
Hello
Although the line saved in Z need not be a complete command, it is recommended that incomplete strings not be put in Z, as they may be upshifted.
"ListJ *" is a useful command string to save. Just type Z, and Qedit will start listing from your current position. When you find what you want, press Control-Y to stop the listing.
![Home](rnd2hm_s.gif)
![Previous](rnd2pr_s.gif)
![Next](rnd2nx_s.gif)