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.
Click to show internal directories.
Click to hide internal directories.