tui

package
v0.0.0-...-2b4b274 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeedWidgetTitle = "Feeds"
)

Variables

View Source
var ErrFeedNotExist = errors.Errorf("Feed Not Exist")
View Source
var ErrGroupNotExist = errors.Errorf("Feed Not Exist")
View Source
var ErrImportFileNotFound = errors.Errorf(db.ImportListPath + " not found")

Functions

This section is empty.

Types

type FeedCellRef

type FeedCellRef struct {
	Feed   *fd.Feed
	Cursor int
}

func NewFeedCellRef

func NewFeedCellRef(f *fd.Feed) *FeedCellRef

type FeedTable

type FeedTable struct {
	*tview.Table
}

type GroupCellRef

type GroupCellRef struct {
	Group  *fd.Group
	Cursor int
}

func NewGroupCellRef

func NewGroupCellRef(g *fd.Group) *GroupCellRef

type GroupTable

type GroupTable struct {
	*FeedTable
}

type InputBox

type InputBox struct {
	*tview.InputField
	Mode rune
}

type ItemTable

type ItemTable struct {
	*tview.Table
}

func (*ItemTable) GetItem

func (i *ItemTable) GetItem(index int) (*fd.Item, error)

type Tui

type Tui struct {
	Config             *db.Config
	DB                 *db.FeedDB
	App                *tview.Application
	Pages              *tview.Pages
	GroupWidget        *GroupTable
	FeedWidget         *FeedTable
	ItemWidget         *ItemTable
	DescriptionWidget  *tview.TextView
	InfoWidget         *tview.TextView
	HelpWidget         *tview.TextView
	InputWidget        *InputBox
	ColorWidget        *tview.Table
	SelectingFeeds     []*fd.Feed
	LastFocusedWidget  *tview.Box
	ConfirmationStatus rune
	CurrentLeftTable   int
	IsLoading          bool
}

func NewTui

func NewTui() *Tui

func (*Tui) AddFeedFromURL

func (t *Tui) AddFeedFromURL(url string) error

func (*Tui) AddFeedsFromURL

func (t *Tui) AddFeedsFromURL(path string) error

func (*Tui) Descript

func (t *Tui) Descript(desc [][]string)

func (*Tui) Help

func (t *Tui) Help(help [][]string)

func (*Tui) MakeGroup

func (t *Tui) MakeGroup(title string) error

func (*Tui) Notify

func (t *Tui) Notify(m string, red bool)

func (*Tui) Run

func (t *Tui) Run() error

func (*Tui) UpdateAllFeed

func (t *Tui) UpdateAllFeed() error

type TuiInterface

type TuiInterface interface {
	SortFeed()
	SelectFeed()
	Notify(text string)
	Descript(info [][]string)
}

Jump to

Keyboard shortcuts

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