Package org.jline.widget
Class AutosuggestionWidgets
- java.lang.Object
-
- org.jline.widget.Widgets
-
- org.jline.widget.AutosuggestionWidgets
-
public class AutosuggestionWidgets extends Widgets
Creates and manages widgets for as you type command line suggestions. Suggestions are created using a using command history.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
enabled
-
Fields inherited from class org.jline.widget.Widgets
AP_BACKWARD_DELETE_CHAR, AP_INSERT, AUTOPAIR_TOGGLE, AUTOSUGGEST_TOGGLE, reader, TAILTIP_PANE, TAILTIP_TOGGLE, TT_ACCEPT_LINE
-
-
Constructor Summary
Constructors Constructor Description AutosuggestionWidgets(LineReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
accept(java.lang.String widget)
boolean
autosuggestEndOfLine()
boolean
autosuggestForwardChar()
private void
customBindings()
private void
defaultBindings()
void
disable()
void
enable()
boolean
partialAccept()
boolean
toggleKeyBindings()
-
Methods inherited from class org.jline.widget.Widgets
addDescription, addWidget, aliasWidget, args, buffer, callWidget, clearDescription, clearTailTip, currChar, destroyDescription, executeWidget, existsWidget, getKeyMap, getWidget, initDescription, lastBinding, parser, prevChar, putString, replaceBuffer, setErrorIndex, setErrorPattern, setSuggestionType, setTailTip, tailTip
-
-
-
-
Constructor Detail
-
AutosuggestionWidgets
public AutosuggestionWidgets(LineReader reader)
-
-
Method Detail
-
disable
public void disable()
-
enable
public void enable()
-
partialAccept
public boolean partialAccept()
-
autosuggestForwardChar
public boolean autosuggestForwardChar()
-
autosuggestEndOfLine
public boolean autosuggestEndOfLine()
-
toggleKeyBindings
public boolean toggleKeyBindings()
-
accept
private boolean accept(java.lang.String widget)
-
customBindings
private void customBindings()
-
defaultBindings
private void defaultBindings()
-
-