tui

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: BSD-3-Clause, MIT Imports: 62 Imported by: 0

Documentation ¶

Overview ¶

Package tui renders the lazygh terminal user interface. It should depend on capability ports and provider-neutral GitHub domain values at the boundary, leaving transport-specific `gh` details in `internal/githubcli`.

Index ¶

Constants ¶

This section is empty.

Variables ¶

View Source
var (
	ErrClipboardUnavailable = errors.New("clipboard is unavailable")
)
View Source
var ErrLinkOpenerUnavailable = errors.New("link opener is unavailable")
View Source
var (
	ErrNoLinkUnderCursor = errors.New("no link under cursor")
)

Functions ¶

This section is empty.

Types ¶

type ActionContext ¶ added in v0.4.0

type ActionContext struct {
	Mode            ScreenMode
	ActiveView      ViewState
	MainView        MainViewResolver
	ActiveDetailTab DetailTab
}

func (ActionContext) IsNotificationContext ¶ added in v0.4.0

func (context ActionContext) IsNotificationContext() bool

func (ActionContext) IsPullRequestContext ¶ added in v0.4.0

func (context ActionContext) IsPullRequestContext() bool

func (ActionContext) IsReviewContext ¶ added in v0.4.0

func (context ActionContext) IsReviewContext() bool

func (ActionContext) ShowsPullRequestDescription ¶ added in v0.4.0

func (context ActionContext) ShowsPullRequestDescription() bool

type ActivePanel ¶ added in v0.4.0

type ActivePanel int
const (
	ActivePanelSide ActivePanel = iota
	ActivePanelMain
)

type AppDeps ¶ added in v0.4.0

type AppDeps struct {
	SessionQueries        SessionQueries
	PullRequestList       PullRequestListQueries
	NotificationQueries   NotificationQueries
	DetailQueries         DetailQueries
	PullRequestMutations  PullRequestMutations
	ReviewMutations       ReviewMutations
	NotificationMutations NotificationMutations
	ReactionMutations     ReactionMutations
	BuildQueries          BuildQueries
	MarkdownHTMLRenderer  MarkdownHTMLRenderer
	AuthTokenProvider     AuthTokenProvider
	ClipboardReader       ClipboardReader
	ClipboardWriter       ClipboardWriter
	ExternalEditor        ExternalEditor
	LinkOpener            LinkOpener
	ThemePresetStore      ThemePresetStore
}

type AuthTokenProvider ¶ added in v0.4.0

type AuthTokenProvider interface {
	GetAuthToken() (string, error)
}

type BrowserMode ¶ added in v0.4.0

type BrowserMode struct{}

func (BrowserMode) MainViewResolver ¶ added in v0.4.0

func (BrowserMode) MainViewResolver(program *Program, state ScreenState) MainViewResolver

func (BrowserMode) Mode ¶ added in v0.4.0

func (BrowserMode) Mode() ScreenMode

func (BrowserMode) ScreenState ¶ added in v0.4.0

func (BrowserMode) ScreenState(program *Program) ScreenState

func (BrowserMode) SidebarSchema ¶ added in v0.4.0

func (BrowserMode) SidebarSchema(program *Program) SidebarSchema

type BuildQueries ¶ added in v0.4.0

type BuildQueries interface {
	GetPullRequestBuildRun(repository string, check githubdomain.PullRequestStatusCheck) (string, error)
	GetPullRequestBuildRunJobs(repository string, check githubdomain.PullRequestStatusCheck) ([]githubdomain.PullRequestBuildRunJob, error)
	GetPullRequestBuildRunJobLog(repository string, jobDatabaseID int) (string, error)
	GetPullRequestBuildRunJobLogForCheck(repository string, check githubdomain.PullRequestStatusCheck) (githubdomain.PullRequestBuildRunJob, string, error)
}

type ClipboardReader ¶ added in v0.5.0

type ClipboardReader = clip.Reader

type ClipboardWriter ¶ added in v0.4.0

type ClipboardWriter = clip.Writer

type Cmd ¶ added in v0.6.1

type Cmd interface {
	// contains filtered or unexported methods
}

func Update ¶ added in v0.6.1

func Update(program *Program, msg Msg) []Cmd

type DetailInputMode ¶ added in v0.4.0

type DetailInputMode int
const (
	DetailInputModeNone DetailInputMode = iota
	DetailInputModePullRequestComment
	DetailInputModeBrowserChangesInlineComment
	DetailInputModeReviewInlineComment
)

type DetailQueries ¶ added in v0.4.0

type DetailQueries interface {
	GetPullRequestDetail(repository string, number int) (githubdomain.PullRequestDetail, error)
	GetPullRequestDiff(repository string, number int) (githubdomain.PullRequestDiff, error)
	GetCommitDiff(repository string, commitOID string) (githubdomain.CommitDiff, error)
	GetPullRequestFileTeamOwners(repository string, number int, filePaths []string) (map[string][]string, error)
}

type DetailTab ¶

type DetailTab int
const (
	DescriptionDetailTab DetailTab = iota
	CommentsDetailTab
	CommitsDetailTab
	ChangesDetailTab
	CommitChangesDetailTab
)

func (DetailTab) Label ¶

func (tab DetailTab) Label() string

type ExternalEditor ¶ added in v0.4.0

type ExternalEditor = externalEditor

type Focus ¶

type Focus int
const (
	FocusUserView Focus = iota
	FocusPullRequestsView
	FocusNotificationsView
	FocusDetailView
)

type InputContext ¶ added in v0.4.0

type InputContext struct {
	ActionContext
	SearchUsesReviewTree bool
	DetailInputMode      DetailInputMode
}

type Item ¶

type Item struct {
	Title         string
	Detail        string
	TitleSegments []ItemTitleSegment
}

type ItemTitleSegment ¶

type ItemTitleSegment struct {
	Text               string
	Prefix             string
	ForegroundHex      string
	BackgroundHex      string
	MinimumContrast    float64
	PreserveForeground bool
}

type KeyHintContext ¶ added in v0.4.0

type KeyHintContext int
const (
	KeyHintContextNone KeyHintContext = iota
	KeyHintContextSidePanel
	KeyHintContextMainPanel
	KeyHintContextSearch
	KeyHintContextActionsPopup
	KeyHintContextActionsPopupSearch
	KeyHintContextModalEditor
	KeyHintContextBuildInfo
)

type LinkOpener ¶ added in v0.4.0

type LinkOpener = linkOpener

type MainContentKind ¶ added in v0.4.0

type MainContentKind int
const (
	MainContentKindUserDetail MainContentKind = iota
	MainContentKindPullRequestDetail
	MainContentKindNotificationDetail
	MainContentKindReviewDescription
	MainContentKindReviewDiff
	MainContentKindStoryChapter
)

type MainViewResolver ¶ added in v0.4.0

type MainViewResolver struct {
	SourceView  ViewState
	ContentKind MainContentKind
}

type MarkdownHTMLRenderer ¶ added in v0.4.0

type MarkdownHTMLRenderer interface {
	RenderMarkdownHTML(repository string, markdown string) (string, error)
}

type MarkdownRenderer ¶

type MarkdownRenderer interface {
	Render(markdown string, width int) (string, error)
}

type ModeDescriptor ¶ added in v0.4.0

type ModeDescriptor interface {
	Mode() ScreenMode
	SidebarSchema(*Program) SidebarSchema
	ScreenState(*Program) ScreenState
	MainViewResolver(*Program, ScreenState) MainViewResolver
}

type Model ¶

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

func NewModel ¶

func NewModel(seed SeedData) *Model

func (*Model) ActionsPopupFilteredActionIndexes ¶

func (model *Model) ActionsPopupFilteredActionIndexes() []int

func (*Model) ActionsPopupSearchActive ¶

func (model *Model) ActionsPopupSearchActive() bool

func (*Model) ActionsPopupSearchQuery ¶

func (model *Model) ActionsPopupSearchQuery() string

func (*Model) ActionsPopupSelectedActionIndex ¶

func (model *Model) ActionsPopupSelectedActionIndex() int

func (*Model) ActionsPopupSelectedVisibleIndex ¶

func (model *Model) ActionsPopupSelectedVisibleIndex() int

func (*Model) ActionsPopupVisible ¶

func (model *Model) ActionsPopupVisible() bool

func (*Model) ActivePullRequestTab ¶

func (model *Model) ActivePullRequestTab() PullRequestTab

func (*Model) ApplyProjectedScreenState ¶ added in v0.6.1

func (model *Model) ApplyProjectedScreenState(state ScreenState)

func (*Model) BlurActionsPopupSearch ¶

func (model *Model) BlurActionsPopupSearch()

func (*Model) CancelSearch ¶

func (model *Model) CancelSearch()

func (*Model) ClearPaneSearchQueries ¶

func (model *Model) ClearPaneSearchQueries()

func (*Model) ClearPullRequestSearchQuery ¶ added in v0.6.1

func (model *Model) ClearPullRequestSearchQuery(tab PullRequestTab)

func (*Model) ClearReviewTreeSearchQuery ¶ added in v0.6.1

func (model *Model) ClearReviewTreeSearchQuery()

func (*Model) CloseActionsPopup ¶

func (model *Model) CloseActionsPopup()

func (*Model) CloseDetail ¶

func (model *Model) CloseDetail()

func (*Model) CloseSearchPrompt ¶ added in v0.6.1

func (model *Model) CloseSearchPrompt()

func (*Model) CurrentPullRequests ¶

func (model *Model) CurrentPullRequests() []Item

func (*Model) DetailContent ¶

func (model *Model) DetailContent() string

func (*Model) DetailSearchQuery ¶

func (model *Model) DetailSearchQuery() string

func (*Model) Focus ¶

func (model *Model) Focus() Focus

func (*Model) FocusActionsPopupSearch ¶

func (model *Model) FocusActionsPopupSearch()

func (*Model) FocusDetailFullscreenFromSideFocus ¶ added in v0.6.1

func (model *Model) FocusDetailFullscreenFromSideFocus(sideFocus Focus)

func (*Model) FocusDetailView ¶

func (model *Model) FocusDetailView()

func (*Model) FocusNotificationsView ¶

func (model *Model) FocusNotificationsView()

func (*Model) FocusPullRequestsView ¶

func (model *Model) FocusPullRequestsView()

func (*Model) FocusUserView ¶

func (model *Model) FocusUserView()

func (*Model) FocusViewNumber ¶ added in v0.4.0

func (model *Model) FocusViewNumber(number int)

func (*Model) FullPageActionsPopupDown ¶

func (model *Model) FullPageActionsPopupDown(pageSize int)

func (*Model) FullPageActionsPopupUp ¶

func (model *Model) FullPageActionsPopupUp(pageSize int)

func (*Model) FullscreenPane ¶

func (model *Model) FullscreenPane() Focus

func (*Model) GrowFocusedPane ¶

func (model *Model) GrowFocusedPane()

func (*Model) MoveActionsPopupSelectionDown ¶

func (model *Model) MoveActionsPopupSelectionDown()

func (*Model) MoveActionsPopupSelectionToBottom ¶

func (model *Model) MoveActionsPopupSelectionToBottom()

func (*Model) MoveActionsPopupSelectionToTop ¶

func (model *Model) MoveActionsPopupSelectionToTop()

func (*Model) MoveActionsPopupSelectionUp ¶

func (model *Model) MoveActionsPopupSelectionUp()

func (*Model) MoveSelectionDown ¶

func (model *Model) MoveSelectionDown()

func (*Model) MoveSelectionToBottom ¶

func (model *Model) MoveSelectionToBottom()

func (*Model) MoveSelectionToTop ¶

func (model *Model) MoveSelectionToTop()

func (*Model) MoveSelectionUp ¶

func (model *Model) MoveSelectionUp()

func (*Model) NextPullRequestTab ¶

func (model *Model) NextPullRequestTab()

func (*Model) NextSideView ¶

func (model *Model) NextSideView()

func (*Model) NotificationRows ¶

func (model *Model) NotificationRows() []NotificationRow

func (*Model) NotificationSearchQuery ¶

func (model *Model) NotificationSearchQuery() string

func (*Model) Notifications ¶

func (model *Model) Notifications() []Item

func (*Model) OpenActionsPopup ¶

func (model *Model) OpenActionsPopup(actionCount int)

func (*Model) OpenDetail ¶

func (model *Model) OpenDetail()

func (*Model) PageActionsPopupDown ¶

func (model *Model) PageActionsPopupDown(pageSize int)

func (*Model) PageActionsPopupUp ¶

func (model *Model) PageActionsPopupUp(pageSize int)

func (*Model) PageDown ¶

func (model *Model) PageDown(pageSize int)

func (*Model) PageUp ¶

func (model *Model) PageUp(pageSize int)

func (*Model) PaneLayoutSize ¶

func (model *Model) PaneLayoutSize() PaneLayoutSize

func (*Model) PaneVisible ¶

func (model *Model) PaneVisible(focus Focus) bool

func (*Model) PreviousPullRequestTab ¶

func (model *Model) PreviousPullRequestTab()

func (*Model) PreviousSideView ¶

func (model *Model) PreviousSideView()

func (*Model) PullRequestRows ¶

func (model *Model) PullRequestRows(tab PullRequestTab) []PullRequestRow

func (*Model) PullRequestSearchQuery ¶

func (model *Model) PullRequestSearchQuery(tab PullRequestTab) string

func (*Model) PullRequestTabLabel ¶

func (model *Model) PullRequestTabLabel(tab PullRequestTab) string

func (*Model) PullRequestTabs ¶

func (model *Model) PullRequestTabs() []PullRequestTab

func (*Model) PullRequests ¶

func (model *Model) PullRequests(tab PullRequestTab) []Item

func (*Model) ReviewTreeSearchQuery ¶ added in v0.6.1

func (model *Model) ReviewTreeSearchQuery() string

func (*Model) ScreenState ¶ added in v0.4.0

func (model *Model) ScreenState() ScreenState

func (*Model) SearchActive ¶

func (model *Model) SearchActive() bool

func (*Model) SearchDraft ¶

func (model *Model) SearchDraft() string

func (*Model) SearchTarget ¶

func (model *Model) SearchTarget() Focus

func (*Model) SearchTargetKind ¶ added in v0.6.1

func (model *Model) SearchTargetKind() SearchTargetKind

func (*Model) SearchTargetPullRequestTab ¶

func (model *Model) SearchTargetPullRequestTab() PullRequestTab

func (*Model) SelectNotificationIndex ¶ added in v0.6.1

func (model *Model) SelectNotificationIndex(index int)

func (*Model) SelectPullRequestIndex ¶ added in v0.6.1

func (model *Model) SelectPullRequestIndex(tab PullRequestTab, index int)

func (*Model) SelectUserIndex ¶ added in v0.6.1

func (model *Model) SelectUserIndex(index int)

func (*Model) SelectedNotification ¶

func (model *Model) SelectedNotification() (githubdomain.Notification, bool)

func (*Model) SelectedNotificationIndex ¶

func (model *Model) SelectedNotificationIndex() int

func (*Model) SelectedNotificationRow ¶

func (model *Model) SelectedNotificationRow() (NotificationRow, bool)

func (*Model) SelectedPullRequestIndex ¶

func (model *Model) SelectedPullRequestIndex(tab PullRequestTab) int

func (*Model) SelectedPullRequestRow ¶

func (model *Model) SelectedPullRequestRow() (PullRequestRow, bool)

func (*Model) SelectedPullRequestSummary ¶

func (model *Model) SelectedPullRequestSummary() (githubdomain.PullRequest, bool)

func (*Model) SelectedUserIndex ¶

func (model *Model) SelectedUserIndex() int

func (*Model) SelectedVisibleNotificationIndex ¶

func (model *Model) SelectedVisibleNotificationIndex() int

func (*Model) SelectedVisiblePullRequestIndex ¶

func (model *Model) SelectedVisiblePullRequestIndex(tab PullRequestTab) int

func (*Model) SelectedVisibleUserIndex ¶

func (model *Model) SelectedVisibleUserIndex() int

func (*Model) SetActivePullRequestTab ¶ added in v0.6.1

func (model *Model) SetActivePullRequestTab(tab PullRequestTab)

func (*Model) SetDetailFullscreenReturnSize ¶ added in v0.6.1

func (model *Model) SetDetailFullscreenReturnSize(size PaneLayoutSize)

func (*Model) SetFullscreenPane ¶ added in v0.6.1

func (model *Model) SetFullscreenPane(focus Focus)

func (*Model) SetNotificationRows ¶

func (model *Model) SetNotificationRows(rows []NotificationRow)

func (*Model) SetNotifications ¶

func (model *Model) SetNotifications(notifications []Item)

func (*Model) SetPaneLayoutSize ¶ added in v0.6.1

func (model *Model) SetPaneLayoutSize(size PaneLayoutSize)

func (*Model) SetPullRequestRows ¶

func (model *Model) SetPullRequestRows(tab PullRequestTab, pullRequests []PullRequestRow)

func (*Model) SetPullRequestSearchQuery ¶ added in v0.6.1

func (model *Model) SetPullRequestSearchQuery(tab PullRequestTab, query string)

func (*Model) SetPullRequestTabs ¶

func (model *Model) SetPullRequestTabs(seeds []PullRequestTabSeed)

func (*Model) SetPullRequests ¶

func (model *Model) SetPullRequests(tab PullRequestTab, pullRequests []Item)

func (*Model) SetUsers ¶

func (model *Model) SetUsers(users []Item)

func (*Model) ShrinkFocusedPane ¶

func (model *Model) ShrinkFocusedPane()

func (*Model) StartSearch ¶

func (model *Model) StartSearch()

func (*Model) StartSearchForReviewTree ¶ added in v0.6.1

func (model *Model) StartSearchForReviewTree(pullRequestTab PullRequestTab)

func (*Model) StartSearchForTarget ¶ added in v0.6.1

func (model *Model) StartSearchForTarget(target Focus, pullRequestTab PullRequestTab)

func (*Model) SubmitSearch ¶

func (model *Model) SubmitSearch()

func (*Model) UpdateActionsPopupSearch ¶

func (model *Model) UpdateActionsPopupSearch(query string, filteredActionIndexes []int)

func (*Model) UpdateSearchDraft ¶

func (model *Model) UpdateSearchDraft(query string)

func (*Model) UserSearchQuery ¶

func (model *Model) UserSearchQuery() string

func (*Model) Users ¶

func (model *Model) Users() []Item

func (*Model) VisibleNotifications ¶

func (model *Model) VisibleNotifications() []Item

func (*Model) VisiblePullRequests ¶

func (model *Model) VisiblePullRequests() []Item

func (*Model) VisibleUsers ¶

func (model *Model) VisibleUsers() []Item

type Msg ¶ added in v0.6.1

type Msg interface {
	// contains filtered or unexported methods
}

type MsgActionsPopupActionErrorHandled ¶ added in v0.6.1

type MsgActionsPopupActionErrorHandled struct {
	Err error
}

type MsgActionsPopupActionRequested ¶ added in v0.6.1

type MsgActionsPopupActionRequested struct {
	Action actionsPopupAction
}

type MsgActionsPopupAsyncGHCommandFinished ¶ added in v0.6.1

type MsgActionsPopupAsyncGHCommandFinished struct {
	Err        error
	Completion actionsPopupAsyncCompletion
}

type MsgActionsPopupClosedWithFeedback ¶ added in v0.6.1

type MsgActionsPopupClosedWithFeedback struct {
	Target  Focus
	Message string
}

type MsgActionsPopupPageRequested ¶ added in v0.6.1

type MsgActionsPopupPageRequested struct {
	Kind pageNavigationKind
}

type MsgActionsPopupPageResolved ¶ added in v0.6.1

type MsgActionsPopupPageResolved struct {
	Kind     pageNavigationKind
	PageSize int
}

type MsgActionsPopupSearchInputRequested ¶ added in v0.6.1

type MsgActionsPopupSearchInputRequested struct {
	Intent lineEditorIntent
}

type MsgActionsPopupViewportRequested ¶ added in v0.6.1

type MsgActionsPopupViewportRequested struct {
	Placement viewportPlacement
}

type MsgAddReactionRequested ¶ added in v0.6.1

type MsgAddReactionRequested struct {
	Target  pullRequestReactionActionTarget
	Content githubdomain.ReactionContent
}

type MsgAdjustFocusedPane ¶ added in v0.6.1

type MsgAdjustFocusedPane struct {
	Delta int
}

type MsgAdvanceDetailTab ¶ added in v0.6.1

type MsgAdvanceDetailTab struct {
	Delta int
}

type MsgAdvancePullRequestTab ¶ added in v0.6.1

type MsgAdvancePullRequestTab struct {
	Delta int
}

type MsgAllNotificationsDoneRequested ¶ added in v0.6.1

type MsgAllNotificationsDoneRequested struct{}

type MsgAllNotificationsReadRequested ¶ added in v0.6.1

type MsgAllNotificationsReadRequested struct{}

type MsgAppStarted ¶ added in v0.6.1

type MsgAppStarted struct{}

type MsgApprovePullRequestRequested ¶ added in v0.6.1

type MsgApprovePullRequestRequested struct {
	Target pullRequestActionTarget
}

type MsgAssigneePickerSearchLoaded ¶ added in v0.6.1

type MsgAssigneePickerSearchLoaded struct {
	RequestID int
	Query     string
	Results   []githubdomain.PullRequestAuthor
	Err       error
}

type MsgAssigneePickerSearchLoadingStarted ¶ added in v0.6.1

type MsgAssigneePickerSearchLoadingStarted struct {
	RequestID int
	Query     string
}

type MsgCacheConfigApplied ¶ added in v0.6.1

type MsgCacheConfigApplied struct {
	PullRequestCache      persistentPullRequestCache
	NotificationDoneStore notificationDoneStore
	PastedPullRequests    []githubdomain.PullRequest
}

type MsgCancelPendingPullRequestReviewRequested ¶ added in v0.6.1

type MsgCancelPendingPullRequestReviewRequested struct {
	Target pendingPullRequestReviewActionTarget
}

type MsgCancelReviewFileTreeSearch ¶ added in v0.6.1

type MsgCancelReviewFileTreeSearch struct{}

type MsgCancelSearch ¶ added in v0.6.1

type MsgCancelSearch struct{}

type MsgClearCacheRequested ¶ added in v0.6.1

type MsgClearCacheRequested struct{}

type MsgClipboardWriteFinished ¶ added in v0.6.1

type MsgClipboardWriteFinished struct {
	SuccessMessage  string
	FailureMessage  string
	Target          Focus
	Err             error
	Selection       detailSelectionRange
	SelectionTarget clipboardWriteSelectionTarget
}

type MsgCloseActionsPopup ¶ added in v0.6.1

type MsgCloseActionsPopup struct{}

type MsgCloseDetailRequested ¶ added in v0.6.1

type MsgCloseDetailRequested struct{}

type MsgCloseHelp ¶ added in v0.6.1

type MsgCloseHelp struct{}

type MsgCloseSearch ¶ added in v0.6.1

type MsgCloseSearch struct{}

type MsgCommitDiffLoaded ¶ added in v0.7.0

type MsgCommitDiffLoaded struct {
	PullRequestKey string
	CommitOID      string
	Diff           githubdomain.CommitDiff
	Err            error
}

type MsgConnectedUserLoadPlanned ¶ added in v0.6.1

type MsgConnectedUserLoadPlanned struct{}

type MsgConnectedUserLoaded ¶ added in v0.6.1

type MsgConnectedUserLoaded struct {
	User githubdomain.ConnectedUser
	Err  error
}

type MsgCopyPullRequestBuildRunPopupContentRequested ¶ added in v0.6.1

type MsgCopyPullRequestBuildRunPopupContentRequested struct{}

type MsgCopyPullRequestURLRequested ¶ added in v0.6.1

type MsgCopyPullRequestURLRequested struct{}

type MsgCopySelectedDetailTextRequested ¶ added in v0.6.1

type MsgCopySelectedDetailTextRequested struct{}

type MsgCurrentDetailImageHTMLLoadPlanned ¶ added in v0.6.1

type MsgCurrentDetailImageHTMLLoadPlanned struct {
	SourceKey string
}

type MsgCurrentDetailImageHTMLLoaded ¶ added in v0.6.1

type MsgCurrentDetailImageHTMLLoaded struct {
	Source       detailImageHTMLSource
	RenderedHTML string
	Err          error
}

type MsgCurrentDetailImageLoadPlanned ¶ added in v0.6.1

type MsgCurrentDetailImageLoadPlanned struct {
	ImageURL string
}

type MsgCurrentDetailImageLoaded ¶ added in v0.6.1

type MsgCurrentDetailImageLoaded struct {
	ImageURL string
	Image    loadedDetailImage
	Err      error
}

type MsgDetailMotionRequested ¶ added in v0.6.1

type MsgDetailMotionRequested struct {
	Target        detailMotionTarget
	Operation     detailMotionOperation
	Direction     detailCharacterMotionDirection
	Mode          detailCharacterMotionMode
	Reverse       bool
	SelectionKind detailYankMotionSelectionKind
	Rune          rune
}

type MsgDetailMotionResolved ¶ added in v0.6.1

type MsgDetailMotionResolved struct {
	Target         detailMotionTarget
	Operation      detailMotionOperation
	Direction      detailCharacterMotionDirection
	Mode           detailCharacterMotionMode
	Reverse        bool
	SelectionKind  detailYankMotionSelectionKind
	Rune           rune
	Document       detailDocument
	ViewportHeight int
}

type MsgDetailSearchWordResolved ¶ added in v0.6.1

type MsgDetailSearchWordResolved struct {
	Document       detailDocument
	ViewportHeight int
	Reverse        bool
}

type MsgDetailViewSyncPlanResolved ¶ added in v0.6.1

type MsgDetailViewSyncPlanResolved struct {
	Plan           detailViewSyncPlan
	ViewportHeight int
}

type MsgDetailViewportRequested ¶ added in v0.6.1

type MsgDetailViewportRequested struct {
	Operation detailViewportOperation
}

type MsgDetailViewportResolved ¶ added in v0.6.1

type MsgDetailViewportResolved struct {
	Operation      detailViewportOperation
	Document       detailDocument
	ViewportHeight int
}

type MsgDetailYankRequested ¶ added in v0.6.1

type MsgDetailYankRequested struct {
	Target detailMotionTarget
}

type MsgDisplayCommitChangesRequested ¶ added in v0.7.0

type MsgDisplayCommitChangesRequested struct{}

type MsgDisplayConfigApplied ¶ added in v0.7.0

type MsgDisplayConfigApplied struct {
	Config appconfig.DisplayConfig
}

type MsgErrorReported ¶ added in v0.6.1

type MsgErrorReported struct {
	Message string
}

type MsgExecuteSelectedActionsPopupActionRequested ¶ added in v0.6.1

type MsgExecuteSelectedActionsPopupActionRequested struct{}

type MsgExitReviewMode ¶ added in v0.6.1

type MsgExitReviewMode struct{}

type MsgFeedbackSet ¶ added in v0.6.1

type MsgFeedbackSet struct {
	Target  Focus
	Message string
}

type MsgFocusActionsPopupList ¶ added in v0.6.1

type MsgFocusActionsPopupList struct{}

type MsgFocusActionsPopupSearch ¶ added in v0.6.1

type MsgFocusActionsPopupSearch struct{}

type MsgFocusDetailRenderedLineResolved ¶ added in v0.6.1

type MsgFocusDetailRenderedLineResolved struct {
	RenderedLine   int
	Document       detailDocument
	ViewportHeight int
}

type MsgFocusPanelView ¶ added in v0.6.1

type MsgFocusPanelView struct {
	Number int
}

type MsgHelpPageNavigationRequested ¶ added in v0.6.1

type MsgHelpPageNavigationRequested struct {
	Kind pageNavigationKind
}

type MsgInlineCommentDeleteRequested ¶ added in v0.6.1

type MsgInlineCommentDeleteRequested struct {
	Target pullRequestReviewCommentActionTarget
}

type MsgInlineCommentDeleted ¶ added in v0.6.1

type MsgInlineCommentDeleted struct {
	Target pullRequestReviewCommentActionTarget
}

type MsgInlineCommentReplySubmitRequested ¶ added in v0.6.1

type MsgInlineCommentReplySubmitRequested struct {
	Target pullRequestReviewThreadReplyTarget
	Body   string
}

type MsgInlineCommentReplySubmitted ¶ added in v0.6.1

type MsgInlineCommentReplySubmitted struct {
	Target pullRequestReviewThreadReplyTarget
	Body   string
}

type MsgInlineCommentResolutionApplied ¶ added in v0.6.1

type MsgInlineCommentResolutionApplied struct {
	Target         pullRequestReviewThreadActionTarget
	Resolved       bool
	FeedbackTarget Focus
}

type MsgInlineCommentResolutionRequested ¶ added in v0.6.1

type MsgInlineCommentResolutionRequested struct {
	Target   pullRequestReviewThreadActionTarget
	Resolved bool
}

type MsgInlineCommentUpdateRequested ¶ added in v0.6.1

type MsgInlineCommentUpdateRequested struct {
	Target pullRequestReviewCommentActionTarget
	Body   string
}

type MsgInlineCommentUpdated ¶ added in v0.6.1

type MsgInlineCommentUpdated struct {
	Target pullRequestReviewCommentActionTarget
	Body   string
}

type MsgIssueDetailLoadPlanned ¶ added in v0.6.1

type MsgIssueDetailLoadPlanned struct {
	Repository string
	Number     int
}

type MsgIssueDetailLoaded ¶ added in v0.6.1

type MsgIssueDetailLoaded struct {
	Repository string
	Number     int
	Detail     githubdomain.IssueDetail
	Err        error
}

type MsgKeymapOverridesApplied ¶ added in v0.6.1

type MsgKeymapOverridesApplied struct {
	Overrides appconfig.KeymapOverrides
}

type MsgLineNavigationRequested ¶ added in v0.6.1

type MsgLineNavigationRequested struct {
	Delta int
}

type MsgLinksConfigApplied ¶ added in v0.6.1

type MsgLinksConfigApplied struct {
	Config appconfig.LinksConfig
}

type MsgLoadingSpinnerTick ¶ added in v0.6.1

type MsgLoadingSpinnerTick struct{}

type MsgModalEditorClosed ¶ added in v0.6.1

type MsgModalEditorClosed struct{}

type MsgModalEditorExternalEditFinished ¶ added in v0.6.1

type MsgModalEditorExternalEditFinished struct {
	Text string
	Err  error
}

type MsgModalEditorExternalEditRequested ¶ added in v0.6.1

type MsgModalEditorExternalEditRequested struct{}

type MsgModalEditorLineInputRequested ¶ added in v0.6.1

type MsgModalEditorLineInputRequested struct {
	Intent lineEditorIntent
}

type MsgModalEditorMultilineInputRequested ¶ added in v0.6.1

type MsgModalEditorMultilineInputRequested struct {
	Intent multilineEditorIntent
}

type MsgModalEditorOpened ¶ added in v0.6.1

type MsgModalEditorOpened struct {
	Descriptor modalEditorOpenDescriptor
}

type MsgModalEditorSubmitFinished ¶ added in v0.6.1

type MsgModalEditorSubmitFinished struct {
	Err        error
	Completion modalEditorSubmitCompletion
}

type MsgModalEditorSubmitRequested ¶ added in v0.6.1

type MsgModalEditorSubmitRequested struct{}

type MsgMoveActionsPopupSelection ¶ added in v0.6.1

type MsgMoveActionsPopupSelection struct {
	Delta int
}

type MsgMoveActionsPopupSelectionToBottom ¶ added in v0.6.1

type MsgMoveActionsPopupSelectionToBottom struct{}

type MsgMoveActionsPopupSelectionToTop ¶ added in v0.6.1

type MsgMoveActionsPopupSelectionToTop struct{}

type MsgMoveReviewComment ¶ added in v0.6.1

type MsgMoveReviewComment struct {
	Direction reviewNavigationDirection
	Filter    reviewCommentNavigationFilter
}

type MsgMoveReviewFile ¶ added in v0.6.1

type MsgMoveReviewFile struct {
	Delta int
}

type MsgMoveReviewSelection ¶ added in v0.6.1

type MsgMoveReviewSelection struct {
	Delta int
}

type MsgMoveReviewSelectionToBottom ¶ added in v0.6.1

type MsgMoveReviewSelectionToBottom struct{}

type MsgMoveReviewSelectionToTop ¶ added in v0.6.1

type MsgMoveReviewSelectionToTop struct{}

type MsgMoveSideSelection ¶ added in v0.6.1

type MsgMoveSideSelection struct {
	Delta int
}

type MsgMoveSideSelectionToBottom ¶ added in v0.6.1

type MsgMoveSideSelectionToBottom struct{}

type MsgMoveSideSelectionToTop ¶ added in v0.6.1

type MsgMoveSideSelectionToTop struct{}

type MsgNextSideView ¶ added in v0.6.1

type MsgNextSideView struct{}

type MsgNotificationDoneRequested ¶ added in v0.6.1

type MsgNotificationDoneRequested struct {
	Target notificationActionTarget
}

type MsgNotificationMutationFinished ¶ added in v0.6.1

type MsgNotificationMutationFinished struct {
	Snapshot               notificationMutationSnapshot
	SuccessFeedbackMessage string
	Err                    error
}

type MsgNotificationMutationStarted ¶ added in v0.6.1

type MsgNotificationMutationStarted struct {
	OptimisticRows []NotificationRow
	LoadingMessage string
}

type MsgNotificationReadRequested ¶ added in v0.6.1

type MsgNotificationReadRequested struct {
	Target notificationActionTarget
}

type MsgNotificationsCacheHydrated ¶ added in v0.6.1

type MsgNotificationsCacheHydrated struct {
	Notifications []githubdomain.Notification
}

type MsgNotificationsLoadPlanned ¶ added in v0.6.1

type MsgNotificationsLoadPlanned struct{}

type MsgNotificationsLoaded ¶ added in v0.6.1

type MsgNotificationsLoaded struct {
	Notifications []githubdomain.Notification
	Err           error
}

type MsgOpenActionsPopup ¶ added in v0.6.1

type MsgOpenActionsPopup struct {
	ActionCount int
}

type MsgOpenAssigneePickerRequested ¶ added in v0.6.1

type MsgOpenAssigneePickerRequested struct {
	Target pullRequestAssigneePickerTarget
}

type MsgOpenBrowserURLFinished ¶ added in v0.6.1

type MsgOpenBrowserURLFinished struct {
	SuccessMessage string
	FailureMessage string
	Target         Focus
	Err            error
}

type MsgOpenBrowserURLRequested ¶ added in v0.6.1

type MsgOpenBrowserURLRequested struct {
	URL            string
	SuccessMessage string
	FailureMessage string
	Target         Focus
}

type MsgOpenDetailPullRequestCommentRequested ¶ added in v0.6.1

type MsgOpenDetailPullRequestCommentRequested struct{}

type MsgOpenDetailRequested ¶ added in v0.6.1

type MsgOpenDetailRequested struct{}

type MsgOpenInlineCommentReplyRequested ¶ added in v0.6.1

type MsgOpenInlineCommentReplyRequested struct{}

type MsgOpenLinkUnderCursorRequested ¶ added in v0.6.1

type MsgOpenLinkUnderCursorRequested struct{}

type MsgOpenLinkUnderCursorResolved ¶ added in v0.6.1

type MsgOpenLinkUnderCursorResolved struct {
	Target          Focus
	URL             string
	LinkAvailable   bool
	OpenerAvailable bool
}

type MsgOpenNotificationInBrowserRequested ¶ added in v0.6.1

type MsgOpenNotificationInBrowserRequested struct{}

type MsgOpenPullRequestBuildRunPopupLinkRequested ¶ added in v0.6.1

type MsgOpenPullRequestBuildRunPopupLinkRequested struct{}

type MsgOpenPullRequestBuildRunPopupLinkResolved ¶ added in v0.6.1

type MsgOpenPullRequestBuildRunPopupLinkResolved struct {
	Target          Focus
	URL             string
	LinkAvailable   bool
	OpenerAvailable bool
}

type MsgOpenPullRequestByURLPromptRequested ¶ added in v0.6.1

type MsgOpenPullRequestByURLPromptRequested struct{}

type MsgOpenPullRequestByURLSubmitRequested ¶ added in v0.6.1

type MsgOpenPullRequestByURLSubmitRequested struct {
	URL string
}

type MsgOpenPullRequestCommentComposerRequested ¶ added in v0.6.1

type MsgOpenPullRequestCommentComposerRequested struct{}

type MsgOpenPullRequestCustomSearchEditorRequested ¶ added in v0.6.1

type MsgOpenPullRequestCustomSearchEditorRequested struct{}

type MsgOpenPullRequestInBrowserRequested ¶ added in v0.6.1

type MsgOpenPullRequestInBrowserRequested struct {
	Target pullRequestActionTarget
}

type MsgOpenPullRequestInBrowserShortcutRequested ¶ added in v0.6.1

type MsgOpenPullRequestInBrowserShortcutRequested struct{}

type MsgOpenPullRequestInBrowserView ¶ added in v0.6.1

type MsgOpenPullRequestInBrowserView struct {
	Summary githubdomain.PullRequest
}

type MsgOpenPullRequestInDetailFullscreen ¶ added in v0.6.1

type MsgOpenPullRequestInDetailFullscreen struct {
	SideFocus Focus
}

type MsgOpenPullRequestInPastedTabView ¶ added in v0.6.1

type MsgOpenPullRequestInPastedTabView struct {
	Summary githubdomain.PullRequest
}

type MsgOpenReactionPickerRequested ¶ added in v0.6.1

type MsgOpenReactionPickerRequested struct {
	Target pullRequestReactionActionTarget
}

type MsgOpenSearch ¶ added in v0.6.1

type MsgOpenSearch struct {
	Query string
}

type MsgOpenThemePickerRequested ¶ added in v0.6.1

type MsgOpenThemePickerRequested struct{}

type MsgPageNavigationRequested ¶ added in v0.6.1

type MsgPageNavigationRequested struct {
	Kind pageNavigationKind
}

type MsgPageNavigationResolved ¶ added in v0.6.1

type MsgPageNavigationResolved struct {
	Kind     pageNavigationKind
	PageSize int
}

type MsgPendingPullRequestReviewCanceled ¶ added in v0.6.1

type MsgPendingPullRequestReviewCanceled struct {
	Target pendingPullRequestReviewActionTarget
}

type MsgPendingPullRequestReviewSubmitRequested ¶ added in v0.6.1

type MsgPendingPullRequestReviewSubmitRequested struct {
	Target         pendingPullRequestReviewTarget
	Event          githubdomain.PullRequestReviewEvent
	Body           string
	FeedbackTarget Focus
}

type MsgPendingPullRequestReviewSubmitted ¶ added in v0.6.1

type MsgPendingPullRequestReviewSubmitted struct {
	Target pendingPullRequestReviewTarget
}

type MsgPersistentCacheCleared ¶ added in v0.6.1

type MsgPersistentCacheCleared struct {
	Err error
}

type MsgPreviousSideView ¶ added in v0.6.1

type MsgPreviousSideView struct{}

type MsgPullRequestAssigneesUpdated ¶ added in v0.6.1

type MsgPullRequestAssigneesUpdated struct {
	Repository     string
	Number         int
	AddLogins      []string
	RemoveLogins   []string
	FeedbackTarget Focus
	Message        string
}

type MsgPullRequestAutoMergeApplied ¶ added in v0.6.1

type MsgPullRequestAutoMergeApplied struct {
	Summary        githubdomain.PullRequest
	Enabled        bool
	FeedbackTarget Focus
	Message        string
}

type MsgPullRequestAutoMergeMutationRequested ¶ added in v0.6.1

type MsgPullRequestAutoMergeMutationRequested struct {
	Kind           pullRequestAutoMergeMutationKind
	Target         pullRequestActionTarget
	Summary        githubdomain.PullRequest
	Enabled        bool
	SuccessMessage string
}

type MsgPullRequestBranchUpdateRequested ¶ added in v0.6.1

type MsgPullRequestBranchUpdateRequested struct {
	Target  pullRequestActionTarget
	Summary githubdomain.PullRequest
}

type MsgPullRequestBranchUpdated ¶ added in v0.6.1

type MsgPullRequestBranchUpdated struct {
	Summary        githubdomain.PullRequest
	FeedbackTarget Focus
	Message        string
}

type MsgPullRequestBuildRunJobLogLoadRequested ¶ added in v0.6.1

type MsgPullRequestBuildRunJobLogLoadRequested struct {
	Summary githubdomain.PullRequest
	Check   githubdomain.PullRequestStatusCheck
}

type MsgPullRequestBuildRunJobLogLoaded ¶ added in v0.6.1

type MsgPullRequestBuildRunJobLogLoaded struct {
	Repository   string
	Job          githubdomain.PullRequestBuildRunJob
	RawLogOutput string
	Err          error
}

type MsgPullRequestBuildRunLoadRequested ¶ added in v0.6.1

type MsgPullRequestBuildRunLoadRequested struct {
	Target pullRequestBuildRunTarget
}

type MsgPullRequestBuildRunLoaded ¶ added in v0.6.1

type MsgPullRequestBuildRunLoaded struct {
	Target       pullRequestBuildRunTarget
	RawRunOutput string
	Jobs         []githubdomain.PullRequestBuildRunJob
	JobsErr      error
	Err          error
}

type MsgPullRequestBuildRunPopupClipboardPrepared ¶ added in v0.6.1

type MsgPullRequestBuildRunPopupClipboardPrepared struct {
	Target         Focus
	Document       detailDocument
	ViewportHeight int
}

type MsgPullRequestBuildRunPopupClosed ¶ added in v0.6.1

type MsgPullRequestBuildRunPopupClosed struct{}

type MsgPullRequestBuildRunPopupOpened ¶ added in v0.6.1

type MsgPullRequestBuildRunPopupOpened struct {
	Content pullRequestBuildRunPopupContent
}

type MsgPullRequestCommentDeleteRequested ¶ added in v0.6.1

type MsgPullRequestCommentDeleteRequested struct {
	Target pullRequestCommentEditActionTarget
}

type MsgPullRequestCommentDeleted ¶ added in v0.6.1

type MsgPullRequestCommentDeleted struct {
	Target pullRequestCommentEditActionTarget
}

type MsgPullRequestCommentSubmitRequested ¶ added in v0.6.1

type MsgPullRequestCommentSubmitRequested struct {
	Target         pullRequestCommentTarget
	Body           string
	FeedbackTarget Focus
}

type MsgPullRequestCommentSubmitted ¶ added in v0.6.1

type MsgPullRequestCommentSubmitted struct {
	Target         pullRequestCommentTarget
	Body           string
	FeedbackTarget Focus
}

type MsgPullRequestCommentUpdateRequested ¶ added in v0.6.1

type MsgPullRequestCommentUpdateRequested struct {
	Target pullRequestCommentEditActionTarget
	Body   string
}

type MsgPullRequestCommentUpdated ¶ added in v0.6.1

type MsgPullRequestCommentUpdated struct {
	Target pullRequestCommentEditActionTarget
	Body   string
}

type MsgPullRequestCustomSearchSubmitRequested ¶ added in v0.6.1

type MsgPullRequestCustomSearchSubmitRequested struct {
	Criteria string
}

type MsgPullRequestCustomSearchSubmitted ¶ added in v0.6.1

type MsgPullRequestCustomSearchSubmitted struct {
	Criteria string
}

type MsgPullRequestDescriptionEditApplied ¶ added in v0.6.1

type MsgPullRequestDescriptionEditApplied struct {
	Target         pullRequestActionTarget
	Body           string
	FeedbackTarget Focus
}

type MsgPullRequestDescriptionEditRequested ¶ added in v0.6.1

type MsgPullRequestDescriptionEditRequested struct {
	Target         pullRequestActionTarget
	Body           string
	FeedbackTarget Focus
}

type MsgPullRequestDetailCacheHydrated ¶ added in v0.6.1

type MsgPullRequestDetailCacheHydrated struct {
	Summary githubdomain.PullRequest
	Result  pullRequestDetailResult
}

type MsgPullRequestDetailLoadPlanned ¶ added in v0.6.1

type MsgPullRequestDetailLoadPlanned struct {
	Key string
}

type MsgPullRequestDetailLoaded ¶ added in v0.6.1

type MsgPullRequestDetailLoaded struct {
	Summary                 githubdomain.PullRequest
	Detail                  githubdomain.PullRequestDetail
	Err                     error
	PendingReviewState      pendingPullRequestReviewState
	PendingReviewStateKnown bool
}

type MsgPullRequestDiffCacheHydrated ¶ added in v0.6.1

type MsgPullRequestDiffCacheHydrated struct {
	Summary githubdomain.PullRequest
	Result  pullRequestDiffResult
}

type MsgPullRequestDiffLoadPlanned ¶ added in v0.6.1

type MsgPullRequestDiffLoadPlanned struct {
	Key string
}

type MsgPullRequestDiffLoaded ¶ added in v0.6.1

type MsgPullRequestDiffLoaded struct {
	Summary githubdomain.PullRequest
	RawDiff githubdomain.PullRequestDiff
	Err     error
}

type MsgPullRequestInvalidatedWithFeedback ¶ added in v0.6.1

type MsgPullRequestInvalidatedWithFeedback struct {
	Repository     string
	Number         int
	InvalidateDiff bool
	FeedbackTarget Focus
	Message        string
}

type MsgPullRequestLifecycleApplied ¶ added in v0.6.1

type MsgPullRequestLifecycleApplied struct {
	Summary        githubdomain.PullRequest
	State          string
	IsDraft        bool
	FeedbackTarget Focus
	Message        string
}

type MsgPullRequestLifecycleMutationRequested ¶ added in v0.6.1

type MsgPullRequestLifecycleMutationRequested struct {
	Kind           pullRequestLifecycleMutationKind
	Target         pullRequestActionTarget
	Summary        githubdomain.PullRequest
	State          string
	IsDraft        bool
	SuccessMessage string
}

type MsgPullRequestMergeQueueApplied ¶ added in v0.7.0

type MsgPullRequestMergeQueueApplied struct {
	Summary        githubdomain.PullRequest
	InQueue        bool
	FeedbackTarget Focus
	Message        string
}

type MsgPullRequestMergeQueueMutationRequested ¶ added in v0.7.0

type MsgPullRequestMergeQueueMutationRequested struct {
	Kind           pullRequestMergeQueueMutationKind
	Target         pullRequestActionTarget
	Summary        githubdomain.PullRequest
	InQueue        bool
	SuccessMessage string
}

type MsgPullRequestMergeWhenReadyApplied ¶ added in v0.7.2

type MsgPullRequestMergeWhenReadyApplied struct {
	Summary         githubdomain.PullRequest
	OptimisticState pullRequestMergeWhenReadyState
	FeedbackTarget  Focus
	Message         string
}

type MsgPullRequestMergeWhenReadyRequested ¶ added in v0.7.2

type MsgPullRequestMergeWhenReadyRequested struct {
	Target          pullRequestActionTarget
	Summary         githubdomain.PullRequest
	OptimisticState pullRequestMergeWhenReadyState
	SuccessMessage  string
}

type MsgPullRequestRequestChangesSubmitRequested ¶ added in v0.6.1

type MsgPullRequestRequestChangesSubmitRequested struct {
	Target         pullRequestActionTarget
	Body           string
	FeedbackTarget Focus
}

type MsgPullRequestReviewCommentSubmitRequested ¶ added in v0.6.1

type MsgPullRequestReviewCommentSubmitRequested struct {
	Target         pullRequestActionTarget
	Body           string
	FeedbackTarget Focus
}

type MsgPullRequestSearchesApplied ¶ added in v0.6.1

type MsgPullRequestSearchesApplied struct {
	Searches []appconfig.PullRequestSearch
}

type MsgPullRequestSquashMergeRequested ¶ added in v0.6.1

type MsgPullRequestSquashMergeRequested struct {
	Target  pullRequestActionTarget
	Summary githubdomain.PullRequest
}

type MsgPullRequestTitleEditApplied ¶ added in v0.6.1

type MsgPullRequestTitleEditApplied struct {
	Target         pullRequestActionTarget
	Title          string
	FeedbackTarget Focus
}

type MsgPullRequestTitleEditRequested ¶ added in v0.6.1

type MsgPullRequestTitleEditRequested struct {
	Target         pullRequestActionTarget
	Title          string
	FeedbackTarget Focus
}

type MsgPullRequestURLReadFromClipboard ¶ added in v0.6.1

type MsgPullRequestURLReadFromClipboard struct {
	URL string
	Err error
}

type MsgPullRequestsCacheHydrated ¶ added in v0.6.1

type MsgPullRequestsCacheHydrated struct {
	Tab          PullRequestTab
	PullRequests []githubdomain.PullRequest
}

type MsgPullRequestsLoadPlanned ¶ added in v0.6.1

type MsgPullRequestsLoadPlanned struct {
	Tab PullRequestTab
}

type MsgPullRequestsLoaded ¶ added in v0.6.1

type MsgPullRequestsLoaded struct {
	Tab          PullRequestTab
	PullRequests []githubdomain.PullRequest
	Err          error
}

type MsgReRequestPullRequestReviewRequested ¶ added in v0.6.1

type MsgReRequestPullRequestReviewRequested struct {
	Target pullRequestReviewerRequestTarget
}

type MsgReactionAdded ¶ added in v0.6.1

type MsgReactionAdded struct {
	Target         pullRequestReactionActionTarget
	Content        githubdomain.ReactionContent
	FeedbackTarget Focus
}

type MsgReactionRemovalRequested ¶ added in v0.6.1

type MsgReactionRemovalRequested struct {
	Target pullRequestReactionRemovalTarget
}

type MsgReactionRemoved ¶ added in v0.6.1

type MsgReactionRemoved struct {
	Target         pullRequestReactionRemovalTarget
	FeedbackTarget Focus
}

type MsgReadPullRequestURLFromClipboardRequested ¶ added in v0.6.1

type MsgReadPullRequestURLFromClipboardRequested struct{}

type MsgRefreshActiveViewRequested ¶ added in v0.6.1

type MsgRefreshActiveViewRequested struct{}

type MsgRefreshNotificationsRequested ¶ added in v0.6.1

type MsgRefreshNotificationsRequested struct{}

type MsgRefreshPullRequestListRequested ¶ added in v0.6.1

type MsgRefreshPullRequestListRequested struct{}

type MsgRefreshPullRequestRequested ¶ added in v0.6.1

type MsgRefreshPullRequestRequested struct {
	Target  pullRequestActionTarget
	Summary githubdomain.PullRequest
}

type MsgReleaseDetailLoadPlanned ¶ added in v0.6.1

type MsgReleaseDetailLoadPlanned struct {
	Repository string
	ID         int
}

type MsgReleaseDetailLoaded ¶ added in v0.6.1

type MsgReleaseDetailLoaded struct {
	Repository string
	ID         int
	Detail     githubdomain.ReleaseDetail
	Err        error
}

type MsgRemovePastedPullRequestRequested ¶ added in v0.6.5

type MsgRemovePastedPullRequestRequested struct{}

type MsgRepeatActionsPopupSearch ¶ added in v0.6.1

type MsgRepeatActionsPopupSearch struct {
	Direction searchRepeatDirection
}

type MsgRepeatDetailSearchRequested ¶ added in v0.6.1

type MsgRepeatDetailSearchRequested struct {
	Direction searchRepeatDirection
}

type MsgRepeatPullRequestSearch ¶ added in v0.6.1

type MsgRepeatPullRequestSearch struct {
	Direction searchRepeatDirection
}

type MsgRepeatReviewFileTreeSearch ¶ added in v0.6.1

type MsgRepeatReviewFileTreeSearch struct {
	Direction searchRepeatDirection
}

type MsgRepeatSideSearch ¶ added in v0.6.1

type MsgRepeatSideSearch struct {
	Focus     Focus
	Direction searchRepeatDirection
}

type MsgReviewInlineCommentPendingReviewPrepared ¶ added in v0.6.1

type MsgReviewInlineCommentPendingReviewPrepared struct {
	Target pullRequestInlineCommentTarget
	Body   string
}

type MsgReviewInlineCommentSubmitRequested ¶ added in v0.6.1

type MsgReviewInlineCommentSubmitRequested struct {
	Target pullRequestInlineCommentTarget
	Body   string
}

type MsgReviewInlineCommentSubmitted ¶ added in v0.6.1

type MsgReviewInlineCommentSubmitted struct {
	Target pullRequestInlineCommentTarget
	Body   string
}

type MsgReviewSessionStarted ¶ added in v0.6.1

type MsgReviewSessionStarted struct {
	Summary         githubdomain.PullRequest
	PendingReviewID string
}

type MsgReviewStoryRequested ¶ added in v0.6.1

type MsgReviewStoryRequested struct {
	Summary githubdomain.PullRequest
}

type MsgSearchDraftChanged ¶ added in v0.6.1

type MsgSearchDraftChanged struct {
	Query string
}

type MsgSearchEditorInputRequested ¶ added in v0.6.1

type MsgSearchEditorInputRequested struct {
	Intent lineEditorIntent
}

type MsgSearchWordUnderCursor ¶ added in v0.6.1

type MsgSearchWordUnderCursor struct {
	Reverse bool
}

type MsgSelectedDetailClipboardPrepared ¶ added in v0.6.1

type MsgSelectedDetailClipboardPrepared struct {
	Target         Focus
	Document       detailDocument
	ViewportHeight int
}

type MsgSetAllDetailFolds ¶ added in v0.6.1

type MsgSetAllDetailFolds struct {
	Collapsed bool
}

type MsgSetAllDetailFoldsResolved ¶ added in v0.6.1

type MsgSetAllDetailFoldsResolved struct {
	Collapsed      bool
	Document       detailDocument
	ViewportHeight int
}

type MsgSetAllReviewTreeFolds ¶ added in v0.6.1

type MsgSetAllReviewTreeFolds struct {
	Collapsed bool
}

type MsgSideListViewportRequested ¶ added in v0.6.1

type MsgSideListViewportRequested struct {
	Placement viewportPlacement
}

type MsgStartPullRequestReviewRequested ¶ added in v0.6.1

type MsgStartPullRequestReviewRequested struct {
	Summary githubdomain.PullRequest
}

type MsgStartReviewFileTreeSearch ¶ added in v0.6.1

type MsgStartReviewFileTreeSearch struct {
	Query string
}

type MsgStoryReviewConfigApplied ¶ added in v0.6.1

type MsgStoryReviewConfigApplied struct {
	Config story.Config
}

type MsgStoryReviewPrepared ¶ added in v0.6.1

type MsgStoryReviewPrepared struct {
	Prepared preparedStoryReview
	Err      error
}

type MsgSubmitAssigneePickerRequested ¶ added in v0.6.1

type MsgSubmitAssigneePickerRequested struct {
	Repository   string
	Number       int
	AddLogins    []string
	RemoveLogins []string
}

type MsgSubmitReviewFileTreeSearch ¶ added in v0.6.1

type MsgSubmitReviewFileTreeSearch struct{}

type MsgSubmitSearch ¶ added in v0.6.1

type MsgSubmitSearch struct{}

type MsgSubmitSelectedActionsPopupActionRequested ¶ added in v0.6.1

type MsgSubmitSelectedActionsPopupActionRequested struct{}

type MsgThemePresetSaved ¶ added in v0.6.1

type MsgThemePresetSaved struct {
	NormalizedName string
	Label          string
	Err            error
}

type MsgThemePresetSelected ¶ added in v0.6.1

type MsgThemePresetSelected struct {
	NormalizedName string
	Label          string
}

type MsgToggleAssigneePickerSelectionRequested ¶ added in v0.6.1

type MsgToggleAssigneePickerSelectionRequested struct {
	Candidate githubdomain.PullRequestAuthor
}

type MsgToggleDetailWordWrapRequested ¶ added in v0.6.1

type MsgToggleDetailWordWrapRequested struct{}

type MsgToggleHelp ¶ added in v0.6.1

type MsgToggleHelp struct{}

type MsgToggleInlineCommentResolutionRequested ¶ added in v0.6.1

type MsgToggleInlineCommentResolutionRequested struct{}

type MsgToggleInlineConversationVisibility ¶ added in v0.6.1

type MsgToggleInlineConversationVisibility struct{}

type MsgToggleInlineConversationVisibilityResolved ¶ added in v0.6.1

type MsgToggleInlineConversationVisibilityResolved struct {
	Document       detailDocument
	ViewportHeight int
}

type MsgToggleReviewTreeRowVisibility ¶ added in v0.6.1

type MsgToggleReviewTreeRowVisibility struct{}

type MsgTransientErrorPopupExpired ¶ added in v0.6.1

type MsgTransientErrorPopupExpired struct {
	Generation uint64
}

type NotificationMutations ¶ added in v0.4.0

type NotificationMutations interface {
	MarkNotificationRead(threadID string) error
	MarkNotificationDone(threadID string) error
	MarkAllNotificationsRead() (githubdomain.NotificationBulkReadResult, error)
	MarkAllNotificationsDone(notifications []githubdomain.Notification) (int, error)
}

type NotificationQueries ¶ added in v0.4.0

type NotificationQueries interface {
	ListNotifications() ([]githubdomain.Notification, error)
	GetIssueDetail(repository string, number int) (githubdomain.IssueDetail, error)
	GetReleaseDetail(repository string, id int) (githubdomain.ReleaseDetail, error)
}

type NotificationRow ¶

type NotificationRow struct {
	Item         Item
	Notification *githubdomain.Notification
}

type OverlayKind ¶ added in v0.4.0

type OverlayKind int
const (
	OverlayKindHelp OverlayKind = iota
	OverlayKindSearch
	OverlayKindActionsPopup
	OverlayKindActionsPopupSearch
	OverlayKindModalEditor
	OverlayKindBuildInfo
)

type OverlayState ¶ added in v0.4.0

type OverlayState struct {
	Kind OverlayKind
}

type PaneLayoutSize ¶

type PaneLayoutSize int
const (
	PaneLayoutDefault PaneLayoutSize = iota
	PaneLayoutHalfWidth
	PaneLayoutFullscreen
)

type PanelFrame ¶ added in v0.4.0

type PanelFrame struct {
	View ViewState
	// contains filtered or unexported fields
}

type PanelState ¶ added in v0.4.0

type PanelState struct {
	Views            []ViewState
	ActiveViewNumber int
}

type Program ¶

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

func NewProgram ¶

func NewProgram() *Program

func NewProgramWithModel ¶

func NewProgramWithModel(model *Model) *Program

func NewProgramWithModelAndDeps ¶ added in v0.4.0

func NewProgramWithModelAndDeps(model *Model, deps AppDeps) *Program

func (*Program) ApplyCacheConfig ¶

func (program *Program) ApplyCacheConfig(config appconfig.CacheConfig) error

func (*Program) ApplyDisplayConfig ¶ added in v0.7.0

func (program *Program) ApplyDisplayConfig(config appconfig.DisplayConfig)

func (*Program) ApplyKeymapOverrides ¶

func (program *Program) ApplyKeymapOverrides(overrides appconfig.KeymapOverrides)

func (*Program) ApplyLinksConfig ¶

func (program *Program) ApplyLinksConfig(config appconfig.LinksConfig)

func (*Program) ApplyPullRequestSearches ¶

func (program *Program) ApplyPullRequestSearches(searches []appconfig.PullRequestSearch)

func (*Program) ApplyStoryReviewConfig ¶

func (program *Program) ApplyStoryReviewConfig(config story.Config)

func (*Program) OpenPullRequestByURL ¶

func (program *Program) OpenPullRequestByURL(rawURL string) error

func (*Program) OpenReviewByURL ¶

func (program *Program) OpenReviewByURL(rawURL string) error

func (*Program) OpenStoryReviewByURL ¶

func (program *Program) OpenStoryReviewByURL(rawURL string) error

func (*Program) Run ¶

func (program *Program) Run() error

type PullRequestListQueries ¶ added in v0.4.0

type PullRequestListQueries interface {
	ListPullRequests(commandArguments []string) ([]githubdomain.PullRequestSummary, error)
}

type PullRequestMutations ¶ added in v0.4.0

type PullRequestMutations interface {
	CommentOnPullRequest(repository string, number int, body string) error
	UpdatePullRequestComment(commentID string, body string) error
	DeletePullRequestComment(commentID string) error
	RequestPullRequestReviewer(repository string, number int, reviewerLogin string) error
	OpenPullRequestInBrowser(repository string, number int) error
	ListAssignableUsers(repository string) ([]githubdomain.PullRequestAuthor, error)
	SearchAssignableUsers(repository string, query string) ([]githubdomain.PullRequestAuthor, error)
	UpdatePullRequestAssignees(repository string, number int, addLogins []string, removeLogins []string) error
	EditPullRequestTitle(repository string, number int, title string) error
	EditPullRequestDescription(repository string, number int, body string) error
	MarkPullRequestReadyForReview(repository string, number int) error
	ConvertPullRequestToDraft(repository string, number int) error
	ClosePullRequest(repository string, number int) error
	ReopenPullRequest(repository string, number int) error
	SquashMergePullRequest(repository string, number int) error
	MergePullRequestWhenReady(repository string, number int, pullRequestID string) error
	EnablePullRequestAutoMerge(repository string, number int) error
	DisablePullRequestAutoMerge(repository string, number int) error
	EnqueuePullRequest(pullRequestID string) error
	DequeuePullRequest(pullRequestID string) error
	UpdatePullRequestBranch(repository string, number int) error
}

type PullRequestRow ¶

type PullRequestRow struct {
	Item    Item
	Summary *githubdomain.PullRequest
}

type PullRequestTab ¶

type PullRequestTab int
const (
	MyPullRequestsTab PullRequestTab = iota
	RequestedPullRequestsTab
)

func (PullRequestTab) Label ¶

func (tab PullRequestTab) Label() string

type PullRequestTabSeed ¶

type PullRequestTabSeed struct {
	Label        string
	PullRequests []Item
}

type ReactionMutations ¶ added in v0.4.0

type ReactionMutations interface {
	AddReaction(subjectID string, content githubdomain.ReactionContent) error
	RemoveReaction(subjectID string, content githubdomain.ReactionContent) error
}

type ReviewMode ¶ added in v0.4.0

type ReviewMode struct{}

func (ReviewMode) MainViewResolver ¶ added in v0.4.0

func (ReviewMode) MainViewResolver(_ *Program, state ScreenState) MainViewResolver

func (ReviewMode) Mode ¶ added in v0.4.0

func (ReviewMode) Mode() ScreenMode

func (ReviewMode) ScreenState ¶ added in v0.4.0

func (ReviewMode) ScreenState(program *Program) ScreenState

func (ReviewMode) SidebarSchema ¶ added in v0.4.0

func (ReviewMode) SidebarSchema(program *Program) SidebarSchema

type ReviewMutations ¶ added in v0.4.0

type ReviewMutations interface {
	ApprovePullRequest(repository string, number int) error
	ReviewPullRequestWithComment(repository string, number int, body string) error
	RequestChangesOnPullRequest(repository string, number int, body string) error
	SubmitPullRequestReview(pullRequestReviewID string, event githubdomain.PullRequestReviewEvent, body string) error
	AddPullRequestReviewThread(pullRequestReviewID string, body string, target githubdomain.PullRequestReviewThreadTarget) error
	AddPullRequestReviewThreadReply(pullRequestReviewID string, pullRequestReviewThreadID string, body string) error
	UpdatePullRequestReviewComment(commentID string, body string) error
	DeletePullRequestReviewComment(commentID string) error
	ResolvePullRequestReviewThread(threadID string) error
	UnresolvePullRequestReviewThread(threadID string) error
	StartPendingPullRequestReview(repository string, number int) (string, error)
	GetPendingPullRequestReviewID(repository string, number int) (string, bool, error)
	DeletePullRequestReview(pullRequestReviewID string) error
}

type ScreenLayout ¶ added in v0.4.0

type ScreenLayout struct {
	PanelFrames        []PanelFrame
	HiddenFrames       []screenViewFrame
	FooterFrames       []screenViewFrame
	StatusLine         screenViewFrame
	StatusLineKeyHints screenViewFrame
	OverlayFrames      []screenViewFrame
}

func (ScreenLayout) OverlayFrame ¶ added in v0.4.0

func (layout ScreenLayout) OverlayFrame(viewName string) (screenViewFrame, bool)

func (ScreenLayout) PanelFrameByViewNumber ¶ added in v0.4.0

func (layout ScreenLayout) PanelFrameByViewNumber(number int) (PanelFrame, bool)

type ScreenMode ¶ added in v0.4.0

type ScreenMode int
const (
	ScreenModeBrowser ScreenMode = iota
	ScreenModeReview
	ScreenModeStoryReview
)

type ScreenState ¶ added in v0.4.0

type ScreenState struct {
	Mode        ScreenMode
	ActivePanel ActivePanel
	MainPanel   PanelState
	SidePanel   PanelState
	Overlays    []OverlayState
}

func (ScreenState) ActiveSideView ¶ added in v0.4.0

func (state ScreenState) ActiveSideView() ViewState

func (ScreenState) ActiveView ¶ added in v0.4.0

func (state ScreenState) ActiveView() ViewState

func (ScreenState) AllowsMainCursor ¶ added in v0.4.0

func (state ScreenState) AllowsMainCursor() bool

func (ScreenState) FocusViewNumber ¶ added in v0.4.0

func (state ScreenState) FocusViewNumber(number int) ScreenState

func (ScreenState) KeyHintContext ¶ added in v0.4.0

func (state ScreenState) KeyHintContext() KeyHintContext

func (ScreenState) MainViewResolver ¶ added in v0.4.0

func (state ScreenState) MainViewResolver() MainViewResolver

func (ScreenState) NextSideView ¶ added in v0.4.0

func (state ScreenState) NextSideView() ScreenState

func (ScreenState) NextTab ¶ added in v0.4.0

func (state ScreenState) NextTab() ScreenState

func (ScreenState) PreviousSideView ¶ added in v0.4.0

func (state ScreenState) PreviousSideView() ScreenState

func (ScreenState) PreviousTab ¶ added in v0.4.0

func (state ScreenState) PreviousTab() ScreenState

func (ScreenState) ViewByNumber ¶ added in v0.4.0

func (state ScreenState) ViewByNumber(number int) (ViewState, bool)

func (ScreenState) WithOverlay ¶ added in v0.4.0

func (state ScreenState) WithOverlay(overlay OverlayState) ScreenState

func (ScreenState) WithViewTabs ¶ added in v0.4.0

func (state ScreenState) WithViewTabs(viewNumber int, activeTab int, tabs []TabState) ScreenState

type SearchTargetKind ¶ added in v0.6.1

type SearchTargetKind int
const (
	SearchTargetUser SearchTargetKind = iota
	SearchTargetPullRequests
	SearchTargetReviewTree
	SearchTargetNotifications
	SearchTargetDetail
)

type SeedData ¶

type SeedData struct {
	Users                 []Item
	MyPullRequests        []Item
	RequestedPullRequests []Item
	Notifications         []Item
	PullRequestTabs       []PullRequestTabSeed
}

func DefaultSeedData ¶

func DefaultSeedData() SeedData

type SessionQueries ¶ added in v0.4.0

type SessionQueries interface {
	GetConnectedUser() (githubdomain.ConnectedUser, error)
}

type SidebarSchema ¶ added in v0.4.0

type SidebarSchema struct {
	Views []ViewState
}

func (SidebarSchema) ViewByNumber ¶ added in v0.4.0

func (schema SidebarSchema) ViewByNumber(number int) (ViewState, bool)

func (SidebarSchema) ViewNumbers ¶ added in v0.4.0

func (schema SidebarSchema) ViewNumbers() []int

type StoryReviewMode ¶ added in v0.4.0

type StoryReviewMode struct{}

func (StoryReviewMode) MainViewResolver ¶ added in v0.4.0

func (StoryReviewMode) MainViewResolver(program *Program, state ScreenState) MainViewResolver

func (StoryReviewMode) Mode ¶ added in v0.4.0

func (StoryReviewMode) Mode() ScreenMode

func (StoryReviewMode) ScreenState ¶ added in v0.4.0

func (StoryReviewMode) ScreenState(program *Program) ScreenState

func (StoryReviewMode) SidebarSchema ¶ added in v0.4.0

func (StoryReviewMode) SidebarSchema(program *Program) SidebarSchema

type TabState ¶ added in v0.4.0

type TabState struct {
	Label string
}

type ThemePresetStore ¶ added in v0.4.0

type ThemePresetStore = themePresetStore

type ViewRenderer ¶ added in v0.4.0

type ViewRenderer interface {
	Configure(*gocui.View)
	Render(*gocui.View)
}

type ViewState ¶ added in v0.4.0

type ViewState struct {
	Number    int
	Focus     Focus
	Tabs      []TabState
	ActiveTab int
}

Source Files ¶

Jump to

Keyboard shortcuts

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