ShellAutocomplete
Category: UI
Source: shell_autocomplete.dart
Classes
ShellAutocomplete
Controls shell mode tab-completion overlay state.
Implements [AutocompleteOverlay]. Unlike slash/@-file overlays, this one activates only on explicit Tab press via [requestCompletions] (async, because it shells out to fish complete -C / compgen).
Constructor
dart
ShellAutocomplete(this._completer)Properties
| Property | Type | Description |
|---|---|---|
maxVisible | const | |
active | bool get | |
selected | int get | |
matchCount | int get | |
tokenStart | int get | The start position of the completable token in the buffer. |
active | bool get | |
selected | int get | |
matchCount | int get | |
tokenStart | int get | The start position of the completable token in the buffer. |
overlayHeight | int get |
Methods
void dismiss()
Future<void> requestCompletions(String buffer, int cursor)
Request completions for the current buffer. Called on Tab press.
Returns a Future that resolves when completions are ready. The caller should re-render after awaiting this.