docs/abbr: Explain ctrl-space

This is now more important because we have regexes and global abbrs
This commit is contained in:
Fabian Boehm 2022-12-13 18:32:56 +01:00
parent 9790907ca8
commit 886b4b92b2

View File

@ -27,6 +27,7 @@ Description
For example, a frequently-run command like ``git checkout`` can be abbreviated to ``gco``.
After entering ``gco`` and pressing :kbd:`Space` or :kbd:`Enter`, the full text ``git checkout`` will appear in the command line.
To avoid expanding something that looks like an abbreviation, the default :kbd:`Control`\ +\ :kbd:`Space` binding inserts a space without expanding.
An abbreviation may match a literal word, or it may match a pattern given by a regular expression. When an abbreviation matches a word, that word is replaced by new text, called its *expansion*. This expansion may be a fixed new phrase, or it can be dynamically created via a fish function. This expansion occurs after pressing space or enter.