picocli icon indicating copy to clipboard operation
picocli copied to clipboard

Completion without space at the end

Open eqvis opened this issue 2 years ago • 1 comments

Hi Remko,

I was able to write a completer that makes a coma separated list of values, at first all values are shown, then only the values not used already are added to the list. Like this:

values are x,y,z no input: shows x y z as candidates input = x: shows x,y and x,z as candidates

This is similar to the behavior for paths, the problem is, that after completing a value (longer than 1 char) with <TAB>, a space is appended.

For jline3 I found that it is possible to add candidates with the field complete=false, is there a way to tell picocli to complete without adding a space?

Thank you in advance and best regards, Mayra

eqvis avatar Apr 07 '22 14:04 eqvis

fyi: I'm using 'picocli-shell-jline3', version: '4.6.2' and 'jline-terminal-jansi', version: '3.21.0'

eqvis avatar Apr 08 '22 10:04 eqvis