feed

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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 contains the state of this tab

func New

func New(colors colorscheme.Colorscheme, width, height int, title string, reader func(string) tea.Cmd) Model

New creates a new feed tab with sensible defaults

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the tab

func (Model) SetHeight added in v1.0.2

func (m Model) SetHeight(height int) tab.Tab

SetHeight sets the height of the tab

func (Model) SetWidth added in v1.0.2

func (m Model) SetWidth(width int) tab.Tab

SetWidth sets the width of the tab

func (Model) ShowHelp added in v1.0.3

func (m Model) ShowHelp() string

func (Model) Title

func (m Model) Title() string

Title returns the title of the tab

func (Model) Type

func (m Model) Type() tab.Type

Type returns the type of the tab

func (Model) Update

func (m Model) Update(msg tea.Msg) (tab.Tab, tea.Cmd)

Update the variables of the tab

func (Model) View

func (m Model) View() string

View the tab

Jump to

Keyboard shortcuts

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