golemhq / golem

A complete test automation tool
http://golem-framework.readthedocs.io/
MIT License
489 stars 77 forks source link

Realtime Autocomplete suggestion in code editor #214

Closed Sunil-Rathore closed 3 years ago

Sunil-Rathore commented 3 years ago

if possible user should get autocomplete suggestion in code editor like suppose if user use navi in code editor so it should suggest navigate.

why it's required : if user want to add code in code editor itself so user should know what are the action user can use like if user type asset so it should suggest all action type of asert

Sunil-Rathore commented 3 years ago

we can use this one Autocomplete but need to use ctrl-space It will better if we can make it Realtime autocomplete suggestion. I have found some change required in index.html in above link repo if we want to do with realtime autocomplete suggesstion without using ctrl-space

editor.on("keyup", function (cm, event) { if (!cm.state.completionActive && /Enables keyboard navigation in autocomplete list/ event.keyCode > 64 && event.keyCode < 91){// only when a letter key is pressed CodeMirror.commands.autocomplete(cm, null, {completeSingle: false}); } });

but need to work on how we can use golem module all action in autocomplete suggestion

luciano-renzi commented 3 years ago

I think this is a good idea 👍

There's an api endpoint that returns the list of actions: https://github.com/golemhq/golem/blob/master/golem/gui/api.py#L60