I'm breaking this off into its own thread. Here is the repro case for my issues with the "group" in tab completion candidates. You never said how group was supposed to behave, but what I'm seeing certainly doesn't make much sense.
Here's how to run the code:
- Grab CommandBox CLI. It's a binary that will run CFML code, a JVM language that CommandBox is written in. (CommandBox is the app where I use Jline!) You'll need the 4.0.0-snapshot build, which has JLine3 bundled
http://integration.stg.ortussolutions.com/artifacts/ortussolutions/commandbox/4.0.0-SNAPSHOT/
If you're on Windows, grab commandbox-win-4.0.0-SNAPSHOT.zip and if you're on *nix, grab commandbox-bin-4.0.0-SNAPSHOT.zip - Save the two attached files and place them in a directory
- test.cfm is a script that creates JLine and generates a prompt
- completor.cfc is my completor class
- Run the test.cfm file like so:
box test.cfm - When the prompt appears, hit the "tab" key.
If you look at the completor, you'll see it is very simple and just adds 4 candidates. Two of them have a group of "group1" and the other two have a group of "group2". Here is the output I see when I hit tab:
CommandBox> option_
group2
group1
option1 option2 option3 option4
The words "group1" and "group2" appear but they're just stuck up at the top and the actual candidates aren't grouped under their respective groups.
If you want to play with CommandBox proper, just run box with no arguments and you'll get the normal shell.
Thanks!
~Brad
Developer Advocate
Ortus Solutions, Corp