Closed Sunil-Rathore closed 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
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
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