Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Autocomplete #25

Open
rofrol opened this issue May 17, 2017 · 7 comments
Open

Feature request: Autocomplete #25

rofrol opened this issue May 17, 2017 · 7 comments

Comments

@rofrol
Copy link

rofrol commented May 17, 2017

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

@warpech
Copy link
Contributor

warpech commented Oct 3, 2017

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.

@rofrol
Copy link
Author

rofrol commented Oct 3, 2017

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

@warpech
Copy link
Contributor

warpech commented Oct 3, 2017

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?

@rofrol
Copy link
Author

rofrol commented Oct 3, 2017

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

Look at LostInBrittany/ace-widget#16

@warpech
Copy link
Contributor

warpech commented Oct 3, 2017

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.

@rofrol
Copy link
Author

rofrol commented Oct 3, 2017

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.

@warpech warpech added this to the Juicy elements support milestone Apr 7, 2018
@SidneyNemzer
Copy link

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?

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

No branches or pull requests

3 participants