User Tools

Site Tools


additional-functionality:autocomplete

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
additional-functionality:autocomplete [2024/12/04 13:26] – created gaetanadditional-functionality:autocomplete [2025/02/19 11:15] (current) gaetan
Line 1: Line 1:
 With the plugin [[https://gitlab.com/grogra/groimp-plugins/Autocompletors|Autocompletors]] comes the possibility to use a text autocomplete in GroIMP text editors. With the plugin [[https://gitlab.com/grogra/groimp-plugins/Autocompletors|Autocompletors]] comes the possibility to use a text autocomplete in GroIMP text editors.
  
-Completors available: 
  
 +
 +Completors available:
 +  * **Static only**: The completions included comes from the [[:user-guide:common_panels#preferences|function browser]]. It also includes all classes from IMP3D objects and turtle commands. When a project is recompiled, its modules and static fields are added to the completions. Warning there is not notion of scope in this completor, i.e. it do not check if a completion is available at a __java__ level.
 +  * **Scope Based**: in development completor. It suggests completions based on the scope and context of the caret. It is based on a parser written in ANTLR 4. The development of the antlr parser and scope builder is available [[https://gitlab.com/grogra/groimp-plugins/Suggest|here]]. The first completion in a project is always slow as it build the scope for the default imports. Then, each completions should be faster. The speed can be an issue for big project. **Note that "import my.package.lib.* " are quite slow to process**.  
  
 ==== How to select a completor ==== ==== How to select a completor ====
  
-Text completors are selected in the options (see how to use the [[:user-guide:common_panels#preferences|preference panel]]+Text completors are selected in the options (see how to use the [[:user-guide:common_panels#preferences|preference panel]]). 
 + 
 +{{:additional-functionality:opt_autocompletion.png?400|}}
  
 ==== Options ==== ==== Options ====
  
-Current available options:+Currently available options:
   * Display description popup: It enables/disables the description popup next to the completion popup.   * Display description popup: It enables/disables the description popup next to the completion popup.
   * Automatically complete words with only one completion: Words with only one completion available will be autocompleted automatically when the completion is triggered (CTRL +SPACE by default).   * Automatically complete words with only one completion: Words with only one completion available will be autocompleted automatically when the completion is triggered (CTRL +SPACE by default).
additional-functionality/autocomplete.1733315165.txt.gz · Last modified: 2024/12/04 13:26 by gaetan