| disbot2 | <cerumod> Hi. I want to add tab-completions to prompt(). I found a Prompt module and a REPL module, and the REPL module shows this example: raku sub shout($line, $pos) { ($line.chop.uc,) if $pos == $line.chars && $line.ends-with("!") } my $repl = REPL.new(:additional-completions([&shout])); $repl.run; But this doesn't seem to work. I expect if I type foo!<tab> into the resulting REPL that the input text will be changed to FOO!, but instead, | 02:43 | |
| nothing happens. This is true even if I add :supports-completions(True) to the REPL.new(...). Does anyone have any suggestions for how I could implement a prompt with custom tab-completion behavior? I can't just provide a list of strings to complete (a la :complete), since I want more complex behavior than simple word list-based completion. | |||
| <librasteve> Hi @cerutonin, my guess is that repl is limited to simple word list completions … sounds to me that you need an LSP of some sort. | 06:13 | ||
| <librasteve> lizmat: maybe you can advise on the situation with repl? | 06:14 | ||
| lizmat | cerumod could you make an issue in the REPL repo? | 07:11 | |
| disbot2 | <cerumod> sure, i'll try to do that sometime today | 07:44 | |
|
08:04
DarthGandalf left
08:06
DarthGandalf joined
09:00
cpli left
09:13
cpli joined
09:32
human-blip left
10:09
human-blip joined
|
|||