numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
20 stars 7 forks source link

Add variables to the terminal autocompletion #98

Closed numeredev closed 1 year ago

numeredev commented 1 year ago

DESCRIPTION

Is your change request related to a problem? Please describe. I find it kind of frustrating that the autocompletion of the terminal does not suggest the known global variables as possible autocompletion candidates and would appreciate if that could be added.

Describe the solution you'd like The terminal autocompletion shall also suggest the known global variables as candidates.

Describe possible alternatives you've considered No alternatives valid.

Additional context Add any other context or screenshots about the feature request here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

The situation, when the terminal is used, is normally not related to any time-consuming tasks, therefore we can create a virtual function within the GenericTerminal accessing the kernel's global variables within the NumeReTerminal class. This function shall create a list of variables possibly fitting to the first chars. This list shall then be added to or combined with the list returned by the usual autocompletion function (one might be influenced by NumeReEditor::generateAutoCompList() as a reference).

Note that tables and clusters should lose their terminal brace if they are added to the terminal in this case.

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST