mjobuda / lily

lil repl for a lissp
3 stars 0 forks source link

No completions for module literals #8

Open gilch opened 3 years ago

gilch commented 3 years ago

Lily suggests completions for attribute access, but not if it's on a module literal, e.g. math..t should pop up a suggestion for tan tanh tau trunc, etc. It seems to be suggesting only based on Python syntax, which might be better than nothing, but it's not as useful as it could be.

It also suggests invalid completions, e.g. "foo". suggests capitalize() etc. Of course, "foo".capitalize() is valid Python syntax, but it's not valid Lissp, which would write that like (.capitalize "foo") instead. I wonder how Clojure's tools would handle suggestions in this case. Maybe we can learn from them.

gilch commented 3 years ago

Submodule completions would also be helpful. E.g. collections. should suggest abc. as a completion.