Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Realtime Autocomplete suggestion in code editor #214

Closed
Sunil-Rathore opened this issue Jun 8, 2021 · 2 comments · Fixed by #215
Closed

Realtime Autocomplete suggestion in code editor #214

Sunil-Rathore opened this issue Jun 8, 2021 · 2 comments · Fixed by #215
Labels

Comments

@Sunil-Rathore
Copy link
Collaborator

Sunil-Rathore commented Jun 8, 2021

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 Sunil-Rathore changed the title Autocomplete suggestion in code editor Realtime Autocomplete suggestion in code editor Jun 8, 2021
@Sunil-Rathore
Copy link
Collaborator Author

Sunil-Rathore commented Jun 8, 2021

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
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants