replcomplete

package
v2026.930.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtIndexEntries added in v2026.606.3

func AtIndexEntries(ctx context.Context, env ReplCompleteEnv) ([]atmention.Entry, error)

func NewReplCompleter

func NewReplCompleter(env ReplCompleteEnv) readline.AutoCompleter

func PathHighlightStatus added in v2026.606.0

func PathHighlightStatus(projRoot, rawToken string) (exists, isPrefix bool)

func ReplCompleteDo

func ReplCompleteDo(env ReplCompleteEnv, line []rune, pos int) ([][]rune, int)

func ReplCompleteResetGoCacheForTest

func ReplCompleteResetGoCacheForTest()

func ReplCompletionDisabled

func ReplCompletionDisabled() bool

func SlashCommandKnown added in v2026.606.0

func SlashCommandKnown(env ReplCompleteEnv, name string) bool

func SlashCommandNames added in v2026.606.0

func SlashCommandNames(env ReplCompleteEnv) []string

func SlashSuggest added in v2026.606.0

func SlashSuggest(env ReplCompleteEnv, buffer string, slashHistory []string) string

func SlashSuggestAt added in v2026.624.0

func SlashSuggestAt(line []rune, col int, env ReplCompleteEnv, slashHistory []string) string

func SuggestSuffixFromFull added in v2026.606.0

func SuggestSuffixFromFull(buffer, full string) string

Types

type ReplCompleteEnv

type ReplCompleteEnv struct {
	Cfg            *config.Root
	ProjHex        string
	ProjRoot       string
	ReplShellFirst bool
	Session        func() *chatstore.Session
}

func EnvFrom

func EnvFrom(src SessionSource) ReplCompleteEnv

type SessionSource

type SessionSource interface {
	ReplCompleteCfg() *config.Root
	ReplCompleteProjHex() string
	ReplCompleteProjRoot() string
	ReplCompleteShellFirst() bool
	ReplCompleteSnapshotSession() *chatstore.Session
}

type SlashContext added in v2026.624.0

type SlashContext struct {
	Active     bool
	SlashStart int
	CmdStart   int
	ArgStart   int
	Cmd        string
}

func SlashContextAt added in v2026.624.0

func SlashContextAt(line []rune, col int) (SlashContext, bool)

type SlashToken added in v2026.624.0

type SlashToken struct {
	SlashStart int
	CmdStart   int
	CmdEnd     int
	ArgStart   int
	ArgEnd     int
}

func SlashTokensInLine added in v2026.624.0

func SlashTokensInLine(line []rune) []SlashToken

Jump to

Keyboard shortcuts

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