class EscapingFileNameCompletor extends FileNameCompleter
JLine Completor that does file path matching like FileNameCompleter, but in addition it escapes whitespace in completions with the '\' character.
| Constructor and description |
|---|
EscapingFileNameCompletor() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
complete(LineReader reader, ParsedLine line, java.util.List<Candidate> candidates) |
Gets FileNameCompleter to create a list of candidates and then inserts '\' before any whitespace characters in each of the candidates. If a candidate ends in a whitespace character, then that is not escaped.