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

taking advantage of broader context in completion #100

Open
dahtah opened this issue Jun 27, 2022 · 1 comment
Open

taking advantage of broader context in completion #100

dahtah opened this issue Jun 27, 2022 · 1 comment

Comments

@dahtah
Copy link
Contributor

dahtah commented Jun 27, 2022

Currently the completion mechanism identifies the symbol at point and queries REPLCompletions for suggestions. REPLCompletions is actually capable of some context dependence when completing, for example in lines that start with using it will suggest package names and not variables. Wouldn't it make sense to change julia-snail-repl-completion-at-point to complete from the beggining of the current line, instead of from the beginning of the current symbol? This way we get context-dependent completions for free.

@gcv gcv added the discussion label Jun 28, 2022
@gcv
Copy link
Owner

gcv commented Jun 28, 2022

That sounds promising. As usual, I’ll get around to it faster if you send me a PR with some proof-of-concept code to look at. :)

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

No branches or pull requests

2 participants