class FileNameCompleter
PATCHED copy from jline 2.12, with https://github.com/jline/jline2/issues/90 (no trailing blank) A file name completer takes the buffer and issues a list of potential completions.
This completer tries to behave as similar as possible to bash's file name completion (using GNU readline) with the following exceptions:Constructor and description |
---|
FileNameCompleter
() |
FileNameCompleter
(boolean blankSuffix) |
FileNameCompleter
(boolean blankSuffix, boolean handleLeadingHyphen) |
Type | Name and description |
---|---|
int |
complete(String buffer, int cursor, List<CharSequence> candidates) |
protected File |
getUserDir() |
protected File |
getUserHome() |
protected int |
matchFiles(String buffer, String translated, File[] files, List<CharSequence> candidates, def hyphenChar) |
protected CharSequence |
render(CharSequence name, String hyphenChar) |
protected String |
separator() |
Copyright © 2003-2014 The Codehaus. All rights reserved.