KetraTerm
API · v0.3.0All versions

fuzzyPath

fun fuzzyPath(sourceId: String, entriesProvider: TerminalFuzzyPathProvider, requiresNonEmptyPrefix: Boolean = true, allowedCommandNames: Set<String> = emptySet()): TerminalCompletionSource

Creates a source backed by a query-aware host fuzzy-path provider.

The immutable request and resolved semantic context let IDE hosts query their indexes asynchronously using the decoded active path prefix. The provider owns the only fuzzy match and an independent host-query budget; it must return ready results in relevance order without blocking the completion thread. The engine's final candidate limit is applied only after shared terminal path and quoting rules.

Return

context-aware fuzzy path completion source.

Parameters

sourceId

stable candidate-source id used by ranking feedback.

entriesProvider

ready query-aware path provider scoped by the immutable completion request.

requiresNonEmptyPrefix

whether this source waits for explicit path text.

allowedCommandNames

optional canonical command/subcommand restriction.

Throws