wiki:Features/Autocomplete

Version 2 (modified by Sewi, 3 years ago) (diff)

--

Based on #67

Description

Padre knows two types of source code auto-complete:

  • Manual using a hotkey (Ctrl-P)
  • Automatically while typing

Both of them are configurable using the Preferences? dialog.

Only known keys of this hash are suggested within hash brackets.

Test

  • Open any Perl source file
  • begin typing a variable name used in that file
  • Manual: Press Ctrl-P, Automatic: No need to press anything
  • A dropdown list should pop up near the cursor suggesting the rest of the variable name

TODO

This feature considers the local file as source for suggestions. A perltags file is used if the project has one.

  • Suggest from overall word list if a hash has no known keys
  • Enable creation of perltags files using the UI or automatically (the menu item from the Perl menu might not work properly)
  • Support references ($www = WWW::Mechanize->new(); type $www-> to show a list of methods; type $www->{ to show a list of useable keys)
  • Use all words from a project within all files of this project (configurable!!!)