14

Perl 6 comes with a REPL; and that REPL picks up plugins such as Linenoise as soon as it's installed, getting all the goodies. However, it's not clear to me how Linenoise plugs into the REPL to provide that functionality. I haven't seen it documented anywhere, either. If I want to create my own plugin for providing, let's say, other type of tab completion (which Linenoise already has, but far as I can tell, only for keywords), or anything else for that matter, how could I proceed? Is there any particular part of Linenoise I could fork for doing that? This would help, for instance, towards providing a better REPL, as the community has requested for some time already.

3
  • 5
    git grep Linenoise -- github.com/rakudo/rakudo/blob/… -- As you can see this isn't a public plugin API. Commented Aug 21, 2018 at 18:59
  • Is this similar to my question: stackoverflow.com/questions/50119972/perl6-repl-usage ? Commented Aug 28, 2018 at 13:08
  • 1
    @JasonDoege there's some relation, but I was looking for something along the lines of adding functionality to the REPL and using it automatically without calling any other method or module. Commented Aug 29, 2018 at 15:35

1 Answer 1

2

You currently cannot, at least not without patching Raku. It's hard-coded in Raku's source code.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.