app

package
v0.0.0-...-0ab5f93 Latest Latest
Warning

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

Go to latest
Published: May 13, 2026 License: MIT Imports: 45 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type FilterState

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

FilterState manages the tag filter with explicit lifecycle: - active: whether a filter is currently applied - value: the tag being filtered (only meaningful when active) This replaces the previous plain `tagParam` string to provide clear state management and enable proper reset/clear functionality.

func (*FilterState) Clear

func (f *FilterState) Clear()

Clear deactivates the filter and resets the value

func (*FilterState) IsActive

func (f *FilterState) IsActive() bool

IsActive returns whether a filter is currently applied

func (*FilterState) Set

func (f *FilterState) Set(tag string)

Set activates the filter with a specific tag value

func (*FilterState) Value

func (f *FilterState) Value() string

Value returns the current filter value (empty if not active)

type Mode

type Mode int
const (
	ModeList Mode = iota
	ModeDetail
	ModeEditor
	ModePalette
	ModeConfirmDelete
	ModeHelp
	ModeThemeMenu
	ModePluginMenu
	ModeTagFilter
	ModeConfirmQuit
	ModeSettings
	ModeImportExport
	ModeOnboarding
	ModeStats
	ModeProjectSwitcher
	ModeProjectSidebar
	ModeFocus
)

type Model

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

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Update

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

func (*Model) View

func (m *Model) View() string

Jump to

Keyboard shortcuts

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