User Tools

Site Tools


01_user_documentation:03_interacting_with_groimp:40_additional:01_autocompletion

Differences

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

Link to this comparison view

Next revision
Previous revision
01_user_documentation:03_interacting_with_groimp:40_additional:01_autocompletion [2025/11/01 07:46] – created gaetan01_user_documentation:03_interacting_with_groimp:40_additional:01_autocompletion [2025/11/01 07:54] (current) – gaetan
Line 3: Line 3:
 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.
  
 +Text completors are selected in the options (see how to use the [[:01_user_documentation:03_interacting_with_groimp:02_panels:08_preferences|preference panel]]).
  
 +{{:01_user_documentation:03_interacting_with_groimp:40_additional:opt_autocompletion.png?400|}}
  
-Completors available: +To make the completion, you press ''CTRL + Space''. The possible completions will appear in a popup, by pressing ''Enter'' the selected completion will be inserted in the text. It is possible to use the arrows ''UP'' and ''DOWN'' when the popup is open to select other completions.
-  * **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 ====+======  ======
  
-Text completors are selected in the options (see how to use the [[:user-guide:common_panels#preferences|preference panel]]).+{{namespace>01_user_documentation:03_interacting_with_groimp:40_additional:01_autocompletion}}
  
-{{:additional-functionality:opt_autocompletion.png?400|}} 
  
-==== Options ==== 
- 
-Currently available options: 
-  * 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). 
- 
-==== How to use it ==== 
- 
-To make the completion, you press ''CTRL + Space''. The possible completions will appear in a popup, by pressing ''Enter'' the selected completion will be inserted in the text. 
- 
-It is possible to use the arrows ''UP'' and ''DOWN'' when the popup is open to select other completions. 
01_user_documentation/03_interacting_with_groimp/40_additional/01_autocompletion.1761983163.txt.gz · Last modified: (external edit)