Table of Contents

Name completion

This function attempts to complete any name (word) found at the cursor position. There are 5 types of name completion and the completion method is chosen automatically depending on the context:

command names
the word to be completed is the first word in a command; if no directory is specified, $PATH is searched
directory names
used in the directory panel
user names
for names beginning with ~ (~username = user's home directory)
environment variables
for names beginning with $ sign
filenames
this general type of completion is performed in all other cases
When finer control over the name completion is required, use the completion/insertion panel (<esc> <tab>).

Filename completion tries to recognize certain shell metacharacters and completes filenames in these situations:

These common situations are handled as well:
Notes:

Please note that completion may fail to complete names properly inside some command line constructs (e.g. loops).

If there is no completion possibility, a warning is displayed. If there is exactly one completion possibility, CLEX completes the name, otherwise a list of completion candidates appears on the screen.

screenshot
In case this list is too long, only the next character is suggested.