components

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

internal/ui/components/status_bar.go

internal/ui/components/tab_browser.go

internal/ui/components/tab_editor.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HighlightUpdateMsg

type HighlightUpdateMsg struct {
	Positions []models.Position
}

type StatusBarModel

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

func NewStatusBar

func NewStatusBar() StatusBarModel

func (*StatusBarModel) SetStatus

func (m *StatusBarModel) SetStatus(message string)

func (StatusBarModel) View

func (m StatusBarModel) View() string

type TabBrowserModel

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

func NewTabBrowser

func NewTabBrowser(tabs []models.Tab) TabBrowserModel

func (TabBrowserModel) Cursor

func (m TabBrowserModel) Cursor() int

func (*TabBrowserModel) SetCursor

func (m *TabBrowserModel) SetCursor(cursor int)

func (*TabBrowserModel) SetSize

func (m *TabBrowserModel) SetSize(width, height int)

func (*TabBrowserModel) SetTabs

func (m *TabBrowserModel) SetTabs(tabs []models.Tab)

func (TabBrowserModel) Update

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

func (TabBrowserModel) View

func (m TabBrowserModel) View() string

type TabEditorModel

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

func NewTabEditor

func NewTabEditor(tab *models.Tab) TabEditorModel

func (TabEditorModel) GetCursor

func (m TabEditorModel) GetCursor() models.Position

func (TabEditorModel) GetEditMode

func (m TabEditorModel) GetEditMode() models.EditMode

func (TabEditorModel) GetTab

func (m TabEditorModel) GetTab() *models.Tab

func (TabEditorModel) HasChanged

func (m TabEditorModel) HasChanged() bool

func (*TabEditorModel) ResetChanged

func (m *TabEditorModel) ResetChanged()

func (*TabEditorModel) SetEditMode

func (m *TabEditorModel) SetEditMode(mode models.EditMode)

func (*TabEditorModel) SetHighlightedPositions

func (m *TabEditorModel) SetHighlightedPositions(positions []models.Position)

Updated to set changed = true to force re-render on highlight change

func (*TabEditorModel) SetSize

func (m *TabEditorModel) SetSize(width, height int)

func (TabEditorModel) Update

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

Update now handles external highlight update message to refresh highlights

func (TabEditorModel) View

func (m TabEditorModel) View() string

Jump to

Keyboard shortcuts

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