Deprecated
use org.jline.builtins.Completers$FileNameCompleter instead
This completer tries to behave as similar as possible to bash's file name completion (using GNU readline) with the following exceptions:
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| public void | complete(LineReader reader, ParsedLine commandLine, final List<Candidate> candidates)
Implements jdk. Populates candidates with a list of possible completions for the command line. |
| protected String | |
| protected Path | |
| protected Path |
| FileNameCompleter | back to summary |
|---|---|
| public FileNameCompleter() | |
| accept | back to summary |
|---|---|
| protected boolean accept(Path path) | |
| complete | back to summary |
|---|---|
| public void complete(LineReader reader, ParsedLine commandLine, final List<Candidate> candidates) Implements jdk. Doc from jdk. Populates candidates with a list of possible completions for the command line. The list of candidates will be sorted and filtered by the LineReader, so that the list of candidates displayed to the user will usually be smaller than the list given by the completer. Thus it is not necessary for the completer to do any matching based on the current buffer. On the contrary, in order for the typo matcher to work, all possible candidates for the word being completed should be returned. | |
| getDisplay | back to summary |
|---|---|
| protected String getDisplay(Terminal terminal, Path p) | |
| getUserDir | back to summary |
|---|---|
| protected Path getUserDir() | |
| getUserHome | back to summary |
|---|---|
| protected Path getUserHome() | |