info

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestIncrement added in v0.1.0

func RequestIncrement(label string) tea.Cmd

func RequestMode added in v0.1.0

func RequestMode(mode AppMode) tea.Cmd

func RequestPause added in v0.1.0

func RequestPause() tea.Cmd

func RequestResume added in v0.1.0

func RequestResume() tea.Cmd

func RequestSubscribe added in v0.1.0

func RequestSubscribe(label string, fg lipgloss.Color) tea.Cmd

func RequestUnsubscribe added in v0.1.0

func RequestUnsubscribe(label string) tea.Cmd

Types

type AppMode added in v0.1.0

type AppMode struct {
	Label string
	Bg    lipgloss.Color
	Opts  []string
}
var (
	ModeFollowing    AppMode = AppMode{Label: "FOLLOWING", Bg: lipgloss.Color("#98c379"), Opts: []string{" ·p pause/continue", " ·g go to latest"}}
	ModeBrowsing     AppMode = AppMode{Label: "BROWSING", Bg: lipgloss.Color("#98c378"), Opts: []string{" ·j next", " ·k previous", " ·r reload"}}
	ModePaused       AppMode = AppMode{Label: "PAUSED", Bg: lipgloss.Color("#ff9640")}
	ModeGlobalCmd    AppMode = AppMode{Label: "GLOBAL", Bg: lipgloss.Color("54"), Opts: []string{" ·f follow", "·b browse", "·besc exit mode"}}
	ModePromptActive AppMode = AppMode{Label: "INPUT (exit with ESC)", Bg: lipgloss.Color("54"), Opts: []string{"·besc exit input mode"}}
)

type Model

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

func New

func New() *Model

func (Model) Init

func (model Model) Init() tea.Cmd

func (*Model) Update

func (model *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (model Model) View() string

Jump to

Keyboard shortcuts

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