Documentation
¶
Overview ¶
internal/ui/components/status_bar.go
internal/ui/components/tab_browser.go
internal/ui/components/tab_editor.go
Index ¶
- type HighlightUpdateMsg
- type StatusBarModel
- type TabBrowserModel
- func (m TabBrowserModel) Cursor() int
- func (m *TabBrowserModel) SetCursor(cursor int)
- func (m *TabBrowserModel) SetSize(width, height int)
- func (m *TabBrowserModel) SetTabs(tabs []models.Tab)
- func (m TabBrowserModel) Update(msg tea.Msg) (TabBrowserModel, tea.Cmd)
- func (m TabBrowserModel) View() string
- type TabEditorModel
- func (m TabEditorModel) GetCursor() models.Position
- func (m TabEditorModel) GetEditMode() models.EditMode
- func (m TabEditorModel) GetTab() *models.Tab
- func (m TabEditorModel) HasChanged() bool
- func (m *TabEditorModel) ResetChanged()
- func (m *TabEditorModel) SetEditMode(mode models.EditMode)
- func (m *TabEditorModel) SetHighlightedPositions(positions []models.Position)
- func (m *TabEditorModel) SetSize(width, height int)
- func (m TabEditorModel) Update(msg tea.Msg) (TabEditorModel, tea.Cmd)
- func (m TabEditorModel) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HighlightUpdateMsg ¶
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
Click to show internal directories.
Click to hide internal directories.