ui

package
v0.0.0-...-f560814 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UIKindIssue       UIKind = "issues"
	UIKindAssignee           = "assignees"
	UIKindComment            = "comments"
	UIKindLabel              = "labels"
	UIKindMilestones         = "milestones"
	UIKindProject            = "projects"
	UIKindIssueView          = "issue preview"
	UIKindCommentView        = "comment preview"
	UIKindCommonView         = "preview"
)

Variables

View Source
var SearchUI *searchUI
View Source
var (
	UI *ui
)

Functions

func New

func New() *ui

func NewAssignableUI

func NewAssignableUI()

func NewCommentUI

func NewCommentUI()

func NewFilterUI

func NewFilterUI()

func NewIssueUI

func NewIssueUI()

func NewLabelsUI

func NewLabelsUI()

func NewMilestoneUI

func NewMilestoneUI()

func NewProjectUI

func NewProjectUI()

func NewSearchUI

func NewSearchUI()

func NewViewUI

func NewViewUI(uiKind UIKind)

Types

type CaptureFunc

type CaptureFunc func(event *tcell.EventKey) *tcell.EventKey

type FilterUI

type FilterUI struct {
	*tview.InputField
}
var IssueFilterUI *FilterUI

func (*FilterUI) GetQuery

func (ui *FilterUI) GetQuery() string

func (*FilterUI) SetQuery

func (ui *FilterUI) SetQuery(query string)

type GetListFunc

type GetListFunc func(cursor *string) ([]domain.Item, *github.PageInfo)

type Primitive

type Primitive interface {
	tview.Primitive
	// contains filtered or unexported methods
}

type SearchFunc

type SearchFunc func(text string)

type SelectUI

type SelectUI struct {
	*tview.Table
	// contains filtered or unexported fields
}
var AssigneesUI *SelectUI
var CommentUI *SelectUI
var IssueUI *SelectUI
var LabelUI *SelectUI
var MilestoneUI *SelectUI
var ProjectUI *SelectUI

func NewSelectListUI

func NewSelectListUI(uiKind UIKind, boxColor tcell.Color, setOpt SetSelectUIOpt) *SelectUI

func (*SelectUI) ClearSelected

func (ui *SelectUI) ClearSelected()

func (*SelectUI) ClearView

func (ui *SelectUI) ClearView()

func (*SelectUI) FetchList

func (ui *SelectUI) FetchList()

func (*SelectUI) GetList

func (ui *SelectUI) GetList()

func (*SelectUI) GetSelect

func (ui *SelectUI) GetSelect() domain.Item

func (*SelectUI) Init

func (ui *SelectUI) Init()

func (*SelectUI) SetList

func (ui *SelectUI) SetList(list []domain.Item)

func (*SelectUI) UpdateItem

func (ui *SelectUI) UpdateItem(item domain.Item)

func (*SelectUI) UpdateView

func (ui *SelectUI) UpdateView()

type SetFilterOpt

type SetFilterOpt func(ui *FilterUI)

type SetSelectUIOpt

type SetSelectUIOpt func(ui *SelectUI)

type UIKind

type UIKind string

type ViewUI

type ViewUI struct {
	*tview.TextView
	// contains filtered or unexported fields
}
var (
	IssueViewUI   *ViewUI
	CommentViewUI *ViewUI
	CommonViewUI  *ViewUI
)

Jump to

Keyboard shortcuts

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