fuzzy

package
v0.0.0-...-692cb10 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DismissMsg

type DismissMsg struct{}

DismissMsg is sent when the user cancels the fuzzy finder.

type FileWalkMsg

type FileWalkMsg struct {
	Paths []string
	Done  bool
}

FileWalkMsg delivers a batch of discovered paths.

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the fuzzy finder overlay.

func New

func New(rootDir string, width, height int) Model

New creates a new fuzzy finder searching from rootDir.

func (Model) BoxSize

func (m Model) BoxSize(screenWidth, screenHeight int) (int, int)

BoxSize returns the desired box dimensions for the overlay.

func (Model) Done

func (m Model) Done() bool

Done returns true when the finder should be closed (never — closed via messages).

func (Model) Init

func (m Model) Init() tea.Cmd

Init starts the background file walker.

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

Update handles messages.

func (Model) View

func (m Model) View(th theme.Theme, screenWidth, screenHeight int) string

View renders the fuzzy finder as a bordered floating box content.

type ResultMsg

type ResultMsg struct {
	Path string // full path of the selected file/directory
}

ResultMsg is sent when the user selects a result.

Jump to

Keyboard shortcuts

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