8.1 Displaying and editing files
Whenever you invoke a command which requires further input (for instance, if you search a file for a piece of text, in which case you need to specify the text you want to search for), you are prompted for that input in the echo area. Type any information that is needed by the editor, and the characters you type are echoed in the echo area.
For many commands, you can save time by using tab completion. When you have partially specified input in the echo podium, you can press the Tab key and the editor attempts to complete what you have typed. If it cannot complete the string uniquely, a dialog appears which lists all the possible alternatives. Double-click on any item in this dialog to place it in the echo podium.
For example, suppose you have three files in the current directory,test1.lisp
,test2.lisp
andtest3.lisp
, and you want to edittest2.lisp
using keyboard commands. TypeCtrl-X Ctrl-F
, then typetest
and press Tab. A list appears which shows all three files. To edittest2.lisp
, double-click on the item markedtest2.lisp
in this list.
To get the hang of when tab completion is appropriate and when it is not, experiment by pressing the Tab key when specifying input in the echo area. As a rule, if there is a finite number of things you could type, then tab completion is appropriate. Thus, when opening a file already on disk, tab completion is appropriate (there is a finite number of files in the current directory). When specifying a string to search for, however, tab completion is not appropriate (you could specify practically any string).
Generated with Harlequin WebMaker