completions

package
v0.418.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileAndFolderContextGroup

func NewFileAndFolderContextGroup(lister IndexedFileLister) dialog.CompletionProvider

NewFileAndFolderContextGroup builds the "@" file completion provider. lister may be nil, in which case completions fall back to a filesystem scan only.

func NewSlashCommandsProvider added in v0.410.1

func NewSlashCommandsProvider() dialog.CompletionProvider

NewSlashCommandsProvider returns a CompletionProvider for slash commands.

Types

type IndexedFileLister added in v0.418.6

type IndexedFileLister interface {
	// ListIndexedFiles returns up to limit indexed file paths (relative to the
	// project root) for the project rooted at rootPath, optionally pre-filtered
	// by query. It returns (nil, nil) when the project is not indexed.
	ListIndexedFiles(ctx context.Context, rootPath, query string, limit int) ([]string, error)
}

IndexedFileLister provides fast access to already-indexed project files. It is implemented by the code remembrances indexer. When available, indexed results are served instantly while the full filesystem scan runs in the background.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL