completion

Usage:

/REQUIRE complete.tf

/complete


Loading complete.tf will define the following keybindings:

ESC TAB
complete from context, input history, or %{completion_list}.
ESC ;
complete from %{completion_list}.
ESC i
complete from input history.
ESC /
filename completion.
ESC @
hostname completion.
ESC %
variable name completion.
ESC $
macro name completion.
ESC ^W
world name completion.

To use them, type part of a word, type one of the keybindings, and the rest of the word will be filled in for you automagically. ESC TAB attempts to figure out from context what kind of completion you want; the other bindings do more explicit completions.

By "from context", I mean it will look for patterns and decide which type of completion to use. For example, if the line begins with "/load", it will use filename completion; if the word begins with "%" or "%{", it will use variable name completion; etc.

The "ESC TAB" and "ESC ;" bindings will use the %{completion_list} variable, in which you can store a list of any words you want to be able to complete.

You can also define your own types of completion. See the %{TFLIBDIR}/complete.tf file for more information.

See: /bind, tfrc


Back to index
Back to tf home page
Copyright © 1995 - 1999 Ken Keys