gcv / julia-snail

An Emacs development environment for Julia
GNU General Public License v3.0
235 stars 23 forks source link

taking advantage of broader context in completion #100

Open dahtah opened 2 years ago

dahtah commented 2 years ago

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 commented 2 years ago

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