Documentation
¶
Overview ¶
Package tabcomplete provides filesystem path completion and tab-cycling helpers for TUI input fields.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FSCompletions ¶
FSCompletions returns filesystem path completions for prefix. Returns nil if prefix is empty or no matches are found.
Types ¶
type TabState ¶
type TabState struct {
// contains filtered or unexported fields
}
TabState tracks cycling state for tab completion.
func (*TabState) Advance ¶
Advance cycles completions for prefix using the complete function. On first call (no existing completions), it builds candidates from complete(prefix). On subsequent calls, it cycles to the next candidate. Returns the selected completion and true, or ("", false) if no matches.
Click to show internal directories.
Click to hide internal directories.