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
  • Constructor Details

    • AutosuggestionWidgets

      public AutosuggestionWidgets(org.jline.reader.LineReader reader)
  • Method Details

    • disable

      public void disable()
    • enable

      public void enable()
    • partialAccept

      public boolean partialAccept()
    • autosuggestForwardChar

      public boolean autosuggestForwardChar()
    • autosuggestEndOfLine

      public boolean autosuggestEndOfLine()
    • toggleKeyBindings

      public boolean toggleKeyBindings()