Add some general information about auto-completion capabilities (patch by Lex Trotman, thanks).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4027 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2009-07-25 18:58:26 +00:00
parent aa89783b74
commit b1d3fafd8c
3 changed files with 689 additions and 623 deletions

View File

@ -1,3 +1,10 @@
2009-07-25 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* doc/geany.txt, doc/geany.html:
Add some general information about auto-completion capabilities
(patch by Lex Trotman, thanks).
2009-07-24 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> 2009-07-24 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/highlighting.c: * src/highlighting.c:

File diff suppressed because it is too large Load Diff

View File

@ -834,6 +834,38 @@ the word "echo", a browser window will open(assumed your browser is
called firefox) and it will open the address: http://www.php.net/echo. called firefox) and it will open the address: http://www.php.net/echo.
Auto-completion
^^^^^^^^^^^^^^^
Geany can offer a list of possible completions for symbols defined in the
tags and for all words in a document.
The autocompletion list for symbols is presented when the first few
characters of the symbol are typed (configurable, see
`Editor Completions tab in preferences dialog`_, default 4) or
when the defined keybinding is typed (configurable, see
`Configurable keybindings`_, default Ctrl-Space).
When the defined keybinding is typed and the ``Autocomplete all words in
document`` preference (in `Editor Completions tab in preferences dialog`_)
is selected then the autocomplete list will be chosen from all matching
words in the document, not just the symbols.
If you don't want to use the autocompletion it can be dismissed until
the next symbol by typing Escape. The autocompletion list is updated
as more characters are typed so that it only shows completions that start
with the characters typed so far. If no symbols begin with the sequence,
the autocompletion window is closed.
The highlighted item on the autocompletion list can be chosen from the
list by Tab or Enter/Return. The up and down arrows will move the selected
item and the mouse can be used to select any item from the list, or double
click to chose it as well. The sequence will be completed to match the chosen
item, and if the ``Drop rest of word on completion`` preference is set (in
`Editor Completions tab in preferences dialog`_) then any characters after
the cursor that match a symbol or word are deleted.
User-definable snippets User-definable snippets
^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^