Fork me on GitHub
#unrepl
<
2017-11-08
>
cgrand11:11:31

Here is a proposal for the completion action: It takes 3 arguments: • before a string of what is before the cursor (at least the prefix to complete but may encompass more eg up to the start of the form) • after a string too, may be empty or missing • namespace a symbol It returns a list of maps with key :candidate (string) (more optional keys to be defined later)

dominicm11:11:11

@cgrand not that unrepl is intended for this, but: would before handle "(ns foo) (de" as a value.

dominicm11:11:49

As an aside, I believe the completion action would translate fairly well to compliment, which is considered the best available completion.

cgrand11:11:16

@dominicm sure because the MVI that @pesterhazy is working on is going to first run a regex to ignore everything but the last word 🙂

dominicm11:11:04

heh. Does it matter that different implementations may or may not handle that? I guess I'm putting a question over the potential ambiguity of "more".

cgrand11:11:42

@dominicm ambiguity is on purpose: implementations have to deal with it, they may get too much or too little context

dominicm12:11:54

@cgrand as long as the expectation is that implementations deal with it, 👍 from me