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

Autocomplete #111

Merged
merged 7 commits into from
Jun 8, 2018
Merged

Autocomplete #111

merged 7 commits into from
Jun 8, 2018

Conversation

cosmos72
Copy link
Member

@cosmos72 cosmos72 commented Jun 2, 2018

implement code autocompletion (feature request #22) by adapting @jpark-dev https://github.com/jpark-dev/gophernotes/tree/feature/autocomplete_new_gomacro to use gomacro/fast/Interp.CompleteWords()

Features:

  • Side-effects free: does not use gomacro/fast/Interp.RunExpr()
  • Works across multiple code cells
  • Not confused by code after the cursor
  • Can recursively expand keywords, global symbols (constants, functions, types, variables), content of imported packages, method names and field names

Limitations:

  • No completion on local variables
  • No completion on the result of complicated expressions (function calls, indexing...)

@cosmos72 cosmos72 merged commit aa98a87 into gopherdata:master Jun 8, 2018
@cosmos72 cosmos72 deleted the autocomplete branch June 9, 2018 09:26
@cosmos72 cosmos72 restored the autocomplete branch June 9, 2018 09:26
@cosmos72 cosmos72 deleted the autocomplete branch June 9, 2018 09:30
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

Successfully merging this pull request may close these issues.

1 participant