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 based on command history.AutosuggestionWidgets provides functionality for displaying and accepting suggestions as the user types in the console. These suggestions are derived from the command history, making it easier to repeat or modify previously entered commands.
The widgets support:
- Displaying suggestions as you type
- Accepting the entire suggestion
- Accepting part of a suggestion (word by word)
- Toggling suggestion functionality on and off
-
-
Field Summary
-
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 boolean
autosuggestEndOfLine()
boolean
autosuggestForwardChar()
void
disable()
void
enable()
boolean
partialAccept()
boolean
toggleKeyBindings()
-
Methods inherited from class org.jline.widget.Widgets
addWidget, aliasWidget, args, buffer, callWidget, clearDescription, clearTailTip, currChar, destroyDescription, executeWidget, existsWidget, getKeyMap, getWidget, lastBinding, parser, prevChar, putString, replaceBuffer, setDescription, setErrorIndex, setErrorPattern, setSuggestionType, setTailTip, tailTip
-
-
-
-
Constructor Detail
-
AutosuggestionWidgets
public AutosuggestionWidgets(LineReader reader)
-
-