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

Simple snippet autocompletion #8

Open
davepagurek opened this issue Jun 18, 2018 · 1 comment
Open

Simple snippet autocompletion #8

davepagurek opened this issue Jun 18, 2018 · 1 comment
Assignees

Comments

@davepagurek
Copy link
Member

Autocompletion entries should be a Map<RegExp, string[]>, where the regex matches the string up to the cursor. The strings are code snippets that the user can then change.

e.g.

entries.set(
  /Color\.$/,
  [
    'Color.fromRGB(r: 255, g: 255, b: 255)',
    'Color.fromHex(#FF0000)'
  ]
)
@davepagurek
Copy link
Member Author

Possibly we want to implement our completion in ACE as "snippets"? https://cloud9-sdk.readme.io/docs/snippets

@armcburney armcburney self-assigned this Oct 19, 2018
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

2 participants