search

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(search *Search, viewport *viewport.Viewport, message tea.KeyMsg) tea.Cmd

func Filter

func Filter(search *Search, viewport *viewport.Viewport)

func Reset

func Reset(search *Search, viewport *viewport.Viewport)

Types

type Choice

type Choice struct {
	Id          string
	Description string
}
type Search struct {
	Active   bool            // Whether we're in search mode
	Choices  []Choice        // All available choices
	Filtered []Choice        // Choices after filtering
	Input    textinput.Model // Search input field
}

Jump to

Keyboard shortcuts

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