Currently, when selecting an option through auto-complete (implemented with ValueProvider), the selected option will always put a a space in the command line after the selected option.
This is not always the desired behaviour, especially when autocompleting a file path (i.e. using the FileValueProvider). You would like to go deeper into the path and keep the cursor on the last character.
I think this occurs because the 'complete' field when instantiating the 'Candidate' Jline classes is always set to true in the 'CompleterAdapter' class:
https://github.com/spring-projects/spring-shell/blob/master/spring-shell-core/src/main/java/org/springframework/shell/jline/JLineShellAutoConfiguration.java#L217
This behaviour should be parametrised.
Currently, when selecting an option through auto-complete (implemented with ValueProvider), the selected option will always put a a space in the command line after the selected option.
This is not always the desired behaviour, especially when autocompleting a file path (i.e. using the FileValueProvider). You would like to go deeper into the path and keep the cursor on the last character.
I think this occurs because the 'complete' field when instantiating the 'Candidate' Jline classes is always set to true in the 'CompleterAdapter' class:
https://github.com/spring-projects/spring-shell/blob/master/spring-shell-core/src/main/java/org/springframework/shell/jline/JLineShellAutoConfiguration.java#L217
This behaviour should be parametrised.