| | 2 | |
| | 3 | == Description == |
| | 4 | |
| | 5 | Padre knows two types of source code auto-complete: |
| | 6 | * Manual using a hotkey (Ctrl-P) |
| | 7 | * Automatically while typing |
| | 8 | |
| | 9 | Both of them are configurable using the [wiki:Preferences] dialog. |
| | 10 | |
| | 11 | Only known keys of this hash are suggested within hash brackets. |
| | 12 | |
| | 13 | == Test == |
| | 14 | |
| | 15 | * Open any Perl source file |
| | 16 | * begin typing a variable name used in that file |
| | 17 | * Manual: Press Ctrl-P, Automatic: No need to press anything |
| | 18 | * A dropdown list should pop up near the cursor suggesting the rest of the variable name |
| | 19 | |
| | 20 | == TODO == |
| | 21 | |
| | 22 | This feature considers the local file as source for suggestions. A perltags file is used if the project has one. |
| | 23 | * Suggest from overall word list if a hash has no known keys |
| | 24 | * Enable creation of perltags files using the UI or automatically (the menu item from the Perl menu might not work properly) |
| | 25 | * Support references ($www = WWW::Mechanize->new(); type $www-> to show a list of methods; type $www->{ to show a list of useable keys) |
| | 26 | * Use all words from a project within all files of this project (configurable!!!) |