User Tools

Site Tools


additional-functionality:autocomplete

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
additional-functionality:autocomplete [2024/12/04 13:54] 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:
-  * **SimpleStatic**: 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. +  * **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. 
-  * **Antlr4Simple**: 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/gaetan.heidsieck/tinyimp|here].+  * **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 ====
additional-functionality/autocomplete.1733316899.txt.gz · Last modified: 2024/12/04 13:54 by gaetan