about summary refs log tree commit diff
path: root/Doc/Zsh/roadmap.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-09-21 19:54:31 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-09-21 19:54:31 +0000
commit4fdf7ec7b77c4238becf70755770a5853164c61e (patch)
treed0e8b876f4800d8749edac6cf4d53611395e3c66 /Doc/Zsh/roadmap.yo
parentd09274dcd8199dadcb907b0b78a04674807a107f (diff)
downloadzsh-4fdf7ec7b77c4238becf70755770a5853164c61e.tar.gz
zsh-4fdf7ec7b77c4238becf70755770a5853164c61e.tar.xz
zsh-4fdf7ec7b77c4238becf70755770a5853164c61e.zip
22752: improved introduction to completion
Diffstat (limited to 'Doc/Zsh/roadmap.yo')
-rw-r--r--Doc/Zsh/roadmap.yo29
1 files changed, 24 insertions, 5 deletions
diff --git a/Doc/Zsh/roadmap.yo b/Doc/Zsh/roadmap.yo
index 8cae5b409..17f005b9b 100644
--- a/Doc/Zsh/roadmap.yo
+++ b/Doc/Zsh/roadmap.yo
@@ -40,14 +40,33 @@ variables (referred to in the documentation as parameters) tt(HISTFILE),
 tt(HISTSIZE) and tt(SAVEHIST) in ifzman(zmanref(zshparam))\
 ifnzman(noderef(Parameters Used By The Shell)).
 
-The line editor provides an extensive completion system and the shell
-is supplied with completions for many commonly used commands.  Note
-that the new completion system referred to as tt(compsys) is preferred
-over the older tt(compctl) system.  The completion system must be enabled
-explicitly when the shell starts.  For more information see
+subsect(Completion)
+
+Completion is a feature present in many shells. It allows the user to
+type only a part (usually the prefix) of a word and have the shell fill
+in the rest.  The completion system in zsh is programmable.  For
+example, the shell can be set to complete email addresses in
+arguments to the mail command from your tt(~/.abook/addressbook);
+usernames, hostnames, and even remote paths in arguments to scp, and so
+on.  Anything that can be written in or glued together with zsh can be
+the source of what the line editor offers as possible completions.
+
+Zsh has two completion systems, an old, so called tt(compctl) completion
+(named after the builtin command that serves as its complete and only
+user interface), and a new one, referred to as tt(compsys),
+organized as library of builtin and user-defined functions.
+The two systems differ in their interface for specifying the completion
+behavior.  The new system is more customizable and is supplied with
+completions for many commonly used commands; it is therefore to be
+preferred.
+
+The completion system must be enabled explicitly when the shell starts.
+For more information see
 ifzman(zmanref(zshcompsys))\
 ifnzman(noderef(Completion System)).
 
+subsect(Extending the line editor)
+
 Apart from completion, the line editor is highly extensible by means of
 shell functions.  Some useful functions are provided with the shell; they
 provide facilities such as: