Opened 9 years ago
Last modified 3 years ago
#3847 assigned enhancement
Feature Request: Complete as you Type Class Member Drop-Down List
Reported by: | Owned by: | Anatoly Trosinenko | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | OMEdit | Version: | v1.10.0-dev-nightly |
Keywords: | Autocomplete, code view, drop-down, class members | Cc: |
Description
As a modeling user that cannot memorize all class structures of the Modelica Library Classes, a class member drop-down list feature like the one you find in programming environments like MS Visual Studio would be very helpful for the OMEdit modeling code view.
Whenever you type a full-stop after a class name, a drop-down list would appear, helping you to auto-complete your package name, class variables, or function names as you type.
Change History (11)
comment:1 by , 9 years ago
comment:5 by , 6 years ago
Component: | Frontend → OMEdit |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Thanks to Anatolij Trosinenko, we now have a first working version of this feature in the 1.14.0 nightly build. Please try it and report.
comment:6 by , 6 years ago
I think the most important missing feature now is to take care of inheritance. For example, if you type Modelica.Media.Interfaces.PartialTwoPhaseMedium. (which is something I do often, BTW), only the classes defined or re-declared there show up. In fact, there are many others defined or re-defined in the ancestor classes Modelica.Media.Interfaces.PartialPureSubstance and Modelica.Media.Interfaces.PartialMedium.
If the drop-down list showed up also the classes defined in there, it would be a real bonus, because it's quite hard, particularly for beginner users of Modelica.Media, to figure out what is defined and where.
comment:7 by , 6 years ago
For this we need to involve the NF (new frontend) quite a bit as faking instantiation on the AST via OMEdit is not recommended.
comment:8 by , 5 years ago
Milestone: | 1.14.0 → 1.16.0 |
---|
Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2. This issue is rescheduled to 1.16.0
comment:10 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
Retargeted to 1.18.0 because of 1.17.0 timed release.
+1, autocompletion would be very useful when using OMEdit.
Additionally, I wonder what the best way would be to provide indices (e.g. ctags?) to other editors (e.g. the Atom Modelica language plugin), so they too can provide autocompletion of your Modelica code..