| java.lang.Object jline.FileNameCompletor
FileNameCompletor | public class FileNameCompletor implements Completor(Code) | | A file name completor takes the buffer and issues a list of
potential completions.
This completor tries to behave as similar as possible to
bash's file name completion (using GNU readline)
with the following exceptions:
- Candidates that are directories will end with "/"
- Wildcard regular expressions are not evaluated or replaced
- The "~" character can be used to represent the user's home,
but it cannot complete to other users' homes, since java does
not provide any way of determining that easily
TODO
- Handle files with spaces in them
- Have an option for file type color highlighting
author: Marc Prud'hommeaux |
matchFiles | public int matchFiles(String buffer, String translated, File[] entries, List candidates)(Code) | | Match the specified buffer to the array of entries
and enter the matches into the list of candidates. This method
can be overridden in a subclass that wants to do more
sophisticated file name completion.
Parameters: buffer - the untranslated buffer Parameters: translated - the buffer with common characters replaced Parameters: entries - the list of files to match Parameters: candidates - the list of candidates to populate the offset of the match |
sortFileNames | protected void sortFileNames(List fileNames)(Code) | | |
|
|