subscriptions

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package subscriptions renders subscription blocks and the add prompt

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Header(s rpc.Sub, collapsed, selected, emoji bool) string

func Meta

func Meta(s rpc.Sub, refreshing bool, spinner string) string

func Usage

func Usage(s rpc.Sub) string

Usage is empty when the provider reports no numbers

Types

type Editor

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

func NewEditor

func NewEditor() *Editor

func (*Editor) Active

func (e *Editor) Active() bool

func (*Editor) Hints

func (e *Editor) Hints() [][2]string

func (*Editor) SetWidth

func (e *Editor) SetWidth(w int)

func (*Editor) Start

func (e *Editor) Start() tea.Cmd

func (*Editor) Update

func (e *Editor) Update(msg tea.Msg) (url string, done bool, cmd tea.Cmd)

Update returns done on submit and cancel, url empty on cancel

func (*Editor) View

func (e *Editor) View() string

Jump to

Keyboard shortcuts

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