composefilepanel

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() tea.Model

New builds the read-only file viewer for the Files page.

Types

type Model

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

ComposeFilePanel replaces the PlaceholderPanel on the Files page. The minimal version shows the active compose file's path in the title and a read-only, scrollable view of its raw contents. E opens the file in the user's editor.

The panel is the sole component on its page, so it fills the whole body row (both panel widths plus the gutter). It is not split into a list and a details pane - that is a later-phase extension to browse multiple compose files. The panel is the only component on its page, so it is always active: there is no second panel competing for the keyboard, so the E key and scrolling always work, matching what the footer advertises.

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() tea.View

Jump to

Keyboard shortcuts

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