You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
documentation for REPL completion is somewhat obscure #3674
On tab completion - eval will be called with .scope as an input string. It is expected to return an array of scope names to be used for the auto-completion.
On tab completion - eval will be called with .scope as an input string. It is expected to return an array of scope names to be used for the auto-completion.
means that if an object in the scope is in the promt with an ending . and user press on tab, eval is called with the object without the .
The offending text doesn't appear to be in the REPL docs anymore. I'm going to close this. Please comment or re-open if there's something I'm misunderstanding.
Activity
kapouer commentedon Nov 5, 2015
Of course the obvious interpretation is
yet i don't think my eval function is ever called with that cmd argument being equal to ".scope" ?
Anyway i don't get it.
bnoordhuis commentedon Nov 5, 2015
That's #3544 (comment) - I couldn't make it work either.
Fishrock123 commentedon Nov 5, 2015
I'll keep it on my radar, but I don't think I'll get to looking at it soon.
udnisap commentedon Nov 25, 2015
Looks like the tab completion is called when it has a object ending with a
.For example try this
and run on the repl
means that if an object in the scope is in the promt with an ending
.and user press on tab, eval is called with the object without the.node implementation is at https://github.com/nodejs/node/blob/v5.x/lib/repl.js
Trott commentedon Jun 8, 2016
The offending text doesn't appear to be in the REPL docs anymore. I'm going to close this. Please comment or re-open if there's something I'm misunderstanding.