SwingLiveCompletionBinding
Binds host-neutral live-completion behavior to one Swing terminal.
The binding observes dedicated shell-edit revisions, applies the shared debounce policy, adapts shell snapshots to Swing requests, hides suggestions when focus leaves the terminal, and invalidates request deduplication after user feedback. It owns only its observation job; completion providers, enablement, ranking context, and feedback persistence remain host supplied.
Construct the binding before the terminal so suggestionFeedbackHandler can be passed through io.github.ketraterm.ui.swing.api.SwingHostServices. After binding the terminal to the session, call attach. Call close from the EDT before disposing the terminal.
Constructors
Creates a live-completion binding for session.
Functions
Attaches this binding to terminal and observes shell-edit revisions.
Cancels pending live completion and hides the current popup.
Re-evaluates live completion after the shared debounce interval.