julia-snail icon indicating copy to clipboard operation
julia-snail copied to clipboard

taking advantage of broader context in completion

Open dahtah opened this issue 2 years ago • 1 comments

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.

dahtah avatar Jun 27 '22 14:06 dahtah

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. :)

gcv avatar Jun 28 '22 20:06 gcv