Documentation
¶
Index ¶
- type KeyMap
- type Model
- func (m Model) KeyMap() KeyMap
- func (m Model) Loading() bool
- func (m Model) SetContent(data []byte, truncated bool) Model
- func (m Model) SetErr(err error) Model
- func (m Model) SetFocused(focused bool) Model
- func (m Model) SetSize(w, h int) Model
- func (m Model) SetSpinner(frame string) Model
- func (m Model) Start(f file.Info) Model
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the preview pane of the files page. It holds no client and performs no I/O; the content is set by the caller as it arrives.
func (Model) SetContent ¶
SetContent shows the first bytes of the file; truncated reports that the file is longer.
func (Model) SetFocused ¶
SetFocused shows the border in the accent color if the pane has the focus, and in gray if the files list next to it has.
func (Model) SetSpinner ¶
SetSpinner shows frame in front of the title, for a file that is loading; an empty frame hides it.
Click to show internal directories.
Click to hide internal directories.