Documentation
¶
Index ¶
- func FooterHint(width int, bindings ...key.Binding) string
- func Header(width int, repo, model, status string) string
- func StatusBar(width int, text string, isError bool) string
- func Tabs(active app.Screen) string
- type StreamPane
- func (s *StreamPane) Append(chunk string)
- func (s *StreamPane) Content() string
- func (s *StreamPane) Reset()
- func (s *StreamPane) SetContent(text string)
- func (s *StreamPane) SetFocused(f bool)
- func (s *StreamPane) SetSize(width, height int)
- func (s *StreamPane) View() string
- func (s *StreamPane) Viewport() *viewport.Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FooterHint ¶
FooterHint renders a row of key hint pairs: "key desc key desc …"
Types ¶
type StreamPane ¶
type StreamPane struct {
// contains filtered or unexported fields
}
StreamPane is a scrollable viewport that accumulates streamed tokens.
func NewStreamPane ¶
func NewStreamPane(width, height int) StreamPane
func (*StreamPane) Append ¶
func (s *StreamPane) Append(chunk string)
func (*StreamPane) Content ¶
func (s *StreamPane) Content() string
func (*StreamPane) Reset ¶
func (s *StreamPane) Reset()
func (*StreamPane) SetContent ¶
func (s *StreamPane) SetContent(text string)
func (*StreamPane) SetFocused ¶
func (s *StreamPane) SetFocused(f bool)
func (*StreamPane) SetSize ¶
func (s *StreamPane) SetSize(width, height int)
func (*StreamPane) View ¶
func (s *StreamPane) View() string
func (*StreamPane) Viewport ¶
func (s *StreamPane) Viewport() *viewport.Model
Viewport exposes the inner model so the parent can call vp.Update(msg).
Click to show internal directories.
Click to hide internal directories.