wsnav

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	SelectedProject *workspace.WorkspaceNode // The project selected when Enter is pressed
	// contains filtered or unexported fields
}

Model wraps the navigator component and provides custom table-based rendering.

func New

func New(projects []*workspace.WorkspaceNode, refreshInterval int) *Model

New creates a new model for the workspace navigator TUI.

func (*Model) Init

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

Init is the first command that will be executed.

func (*Model) Update

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

Update handles messages and updates the model accordingly. Delegates to the navigator component for all state management.

func (Model) View

func (m Model) View() string

View renders the TUI with custom table-based display. Overrides the navigator's default View to provide hierarchical table rendering.

Jump to

Keyboard shortcuts

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