Skip to content

Tab auto-complete will always put a space after selected option #285

@gaetPax

Description

@gaetPax

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions