Juicy/juicy-ace-editor

Feature request: Autocomplete

Opened this issue · 7 comments

I just wish this would work with juicy-ace-editor

You mean code completition? Is there some simple switch in Ace that we can use which learns from the vocabulary in the current document? I am afraid we will not be able to do anything else, since juicy-ace-editor is just a thin wrapper for Ace.

I've described my use case here therustmonk/elm-ace#5 (comment)

Thanks. Just a sincere question, what are the benefits of using juicy-ace-editor in Elm rather than directly using Ace in Elm?

The main purpose of custom elements is to encapsulate complex functionality with a simple DOM API, so I guess that's the reason, but maybe there's something more. Are custom elements a big thing in the Elm world?

To have autocomplete working. Currently this should work https://github.com/lostinbrittany/ace-widget

Look at LostInBrittany/ace-widget#16

To have autocomplete working. Currently this should work lostinbrittany/ace-widget

This does not answer my question, but now I have another one... Why don't you use https://github.com/lostinbrittany/ace-widget?

Again, I am asking sincerely, because juicy-ace-editor was created 3 years ago when there was no other custom element wrapper around Ace editor. It is still actively maintain, but maybe we should give space to ace-widget because it also seems nice and has more features.

What are the benefits of using juicy-ace-editor in Elm rather than directly using Ace in Elm

This package DenisKolodin/elm-ace uses ace directly, but to add autocomplete you have to know how the Native works https://github.com/DenisKolodin/elm-ace/blob/master/src/Native/Ace.js

Or maybe you have some other way in your mind to use ace directly.

Why don't you use https://github.com/lostinbrittany/ace-widget?

At that time I didn't know how to enable autocomplete in any of these packages.

Just a sincere question, what are the benefits of using juicy-ace-editor in Elm rather than directly using Ace in Elm?

In case you wanted another perspective on this, I'm also looking to use Ace in a custom element. This package is the first result for "ace editor custom element".

Elm code can't directly interact with imperative APIs, so custom elements work really well with Elm, especially for integrating exiting libraries like Ace.

juicy-ace-editor was created 3 years ago when there was no other custom element wrapper around Ace editor. It is still actively maintain, but maybe we should give space to ace-widget because it also seems nice and has more features.

Good to know! In that case, I'll try ace-widget. Maybe you should add a note to the README of this package?