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 ¶
- Variables
- type ActionContext
- type ActivePanel
- type AppDeps
- type AuthTokenProvider
- type BrowserMode
- type BuildQueries
- type ClipboardReader
- type ClipboardWriter
- type Cmd
- type DetailInputMode
- type DetailQueries
- type DetailTab
- type ExternalEditor
- type Focus
- type InputContext
- type Item
- type ItemTitleSegment
- type KeyHintContext
- type LinkOpener
- type MainContentKind
- type MainViewResolver
- type MarkdownHTMLRenderer
- type MarkdownRenderer
- type ModeDescriptor
- type Model
- func (model *Model) ActionsPopupFilteredActionIndexes() []int
- func (model *Model) ActionsPopupSearchActive() bool
- func (model *Model) ActionsPopupSearchQuery() string
- func (model *Model) ActionsPopupSelectedActionIndex() int
- func (model *Model) ActionsPopupSelectedVisibleIndex() int
- func (model *Model) ActionsPopupVisible() bool
- func (model *Model) ActivePullRequestTab() PullRequestTab
- func (model *Model) ApplyProjectedScreenState(state ScreenState)
- func (model *Model) BlurActionsPopupSearch()
- func (model *Model) CancelSearch()
- func (model *Model) ClearPaneSearchQueries()
- func (model *Model) ClearPullRequestSearchQuery(tab PullRequestTab)
- func (model *Model) ClearReviewTreeSearchQuery()
- func (model *Model) CloseActionsPopup()
- func (model *Model) CloseDetail()
- func (model *Model) CloseSearchPrompt()
- func (model *Model) CurrentPullRequests() []Item
- func (model *Model) DetailContent() string
- func (model *Model) DetailSearchQuery() string
- func (model *Model) Focus() Focus
- func (model *Model) FocusActionsPopupSearch()
- func (model *Model) FocusDetailFullscreenFromSideFocus(sideFocus Focus)
- func (model *Model) FocusDetailView()
- func (model *Model) FocusNotificationsView()
- func (model *Model) FocusPullRequestsView()
- func (model *Model) FocusUserView()
- func (model *Model) FocusViewNumber(number int)
- func (model *Model) FullPageActionsPopupDown(pageSize int)
- func (model *Model) FullPageActionsPopupUp(pageSize int)
- func (model *Model) FullscreenPane() Focus
- func (model *Model) GrowFocusedPane()
- func (model *Model) MoveActionsPopupSelectionDown()
- func (model *Model) MoveActionsPopupSelectionToBottom()
- func (model *Model) MoveActionsPopupSelectionToTop()
- func (model *Model) MoveActionsPopupSelectionUp()
- func (model *Model) MoveSelectionDown()
- func (model *Model) MoveSelectionToBottom()
- func (model *Model) MoveSelectionToTop()
- func (model *Model) MoveSelectionUp()
- func (model *Model) NextPullRequestTab()
- func (model *Model) NextSideView()
- func (model *Model) NotificationRows() []NotificationRow
- func (model *Model) NotificationSearchQuery() string
- func (model *Model) Notifications() []Item
- func (model *Model) OpenActionsPopup(actionCount int)
- func (model *Model) OpenDetail()
- func (model *Model) PageActionsPopupDown(pageSize int)
- func (model *Model) PageActionsPopupUp(pageSize int)
- func (model *Model) PageDown(pageSize int)
- func (model *Model) PageUp(pageSize int)
- func (model *Model) PaneLayoutSize() PaneLayoutSize
- func (model *Model) PaneVisible(focus Focus) bool
- func (model *Model) PreviousPullRequestTab()
- func (model *Model) PreviousSideView()
- func (model *Model) PullRequestRows(tab PullRequestTab) []PullRequestRow
- func (model *Model) PullRequestSearchQuery(tab PullRequestTab) string
- func (model *Model) PullRequestTabLabel(tab PullRequestTab) string
- func (model *Model) PullRequestTabs() []PullRequestTab
- func (model *Model) PullRequests(tab PullRequestTab) []Item
- func (model *Model) ReviewTreeSearchQuery() string
- func (model *Model) ScreenState() ScreenState
- func (model *Model) SearchActive() bool
- func (model *Model) SearchDraft() string
- func (model *Model) SearchTarget() Focus
- func (model *Model) SearchTargetKind() SearchTargetKind
- func (model *Model) SearchTargetPullRequestTab() PullRequestTab
- func (model *Model) SelectNotificationIndex(index int)
- func (model *Model) SelectPullRequestIndex(tab PullRequestTab, index int)
- func (model *Model) SelectUserIndex(index int)
- func (model *Model) SelectedNotification() (githubdomain.Notification, bool)
- func (model *Model) SelectedNotificationIndex() int
- func (model *Model) SelectedNotificationRow() (NotificationRow, bool)
- func (model *Model) SelectedPullRequestIndex(tab PullRequestTab) int
- func (model *Model) SelectedPullRequestRow() (PullRequestRow, bool)
- func (model *Model) SelectedPullRequestSummary() (githubdomain.PullRequest, bool)
- func (model *Model) SelectedUserIndex() int
- func (model *Model) SelectedVisibleNotificationIndex() int
- func (model *Model) SelectedVisiblePullRequestIndex(tab PullRequestTab) int
- func (model *Model) SelectedVisibleUserIndex() int
- func (model *Model) SetActivePullRequestTab(tab PullRequestTab)
- func (model *Model) SetDetailFullscreenReturnSize(size PaneLayoutSize)
- func (model *Model) SetFullscreenPane(focus Focus)
- func (model *Model) SetNotificationRows(rows []NotificationRow)
- func (model *Model) SetNotifications(notifications []Item)
- func (model *Model) SetPaneLayoutSize(size PaneLayoutSize)
- func (model *Model) SetPullRequestRows(tab PullRequestTab, pullRequests []PullRequestRow)
- func (model *Model) SetPullRequestSearchQuery(tab PullRequestTab, query string)
- func (model *Model) SetPullRequestTabs(seeds []PullRequestTabSeed)
- func (model *Model) SetPullRequests(tab PullRequestTab, pullRequests []Item)
- func (model *Model) SetUsers(users []Item)
- func (model *Model) ShrinkFocusedPane()
- func (model *Model) StartSearch()
- func (model *Model) StartSearchForReviewTree(pullRequestTab PullRequestTab)
- func (model *Model) StartSearchForTarget(target Focus, pullRequestTab PullRequestTab)
- func (model *Model) SubmitSearch()
- func (model *Model) UpdateActionsPopupSearch(query string, filteredActionIndexes []int)
- func (model *Model) UpdateSearchDraft(query string)
- func (model *Model) UserSearchQuery() string
- func (model *Model) Users() []Item
- func (model *Model) VisibleNotifications() []Item
- func (model *Model) VisiblePullRequests() []Item
- func (model *Model) VisibleUsers() []Item
- type Msg
- type MsgActionsPopupActionErrorHandled
- type MsgActionsPopupActionRequested
- type MsgActionsPopupAsyncGHCommandFinished
- type MsgActionsPopupClosedWithFeedback
- type MsgActionsPopupPageRequested
- type MsgActionsPopupPageResolved
- type MsgActionsPopupSearchInputRequested
- type MsgActionsPopupViewportRequested
- type MsgAddReactionRequested
- type MsgAdjustFocusedPane
- type MsgAdvanceDetailTab
- type MsgAdvancePullRequestTab
- type MsgAllNotificationsDoneRequested
- type MsgAllNotificationsReadRequested
- type MsgAppStarted
- type MsgApprovePullRequestRequested
- type MsgAssigneePickerSearchLoaded
- type MsgAssigneePickerSearchLoadingStarted
- type MsgCacheConfigApplied
- type MsgCancelPendingPullRequestReviewRequested
- type MsgCancelReviewFileTreeSearch
- type MsgCancelSearch
- type MsgClearCacheRequested
- type MsgClipboardWriteFinished
- type MsgCloseActionsPopup
- type MsgCloseDetailRequested
- type MsgCloseHelp
- type MsgCloseSearch
- type MsgCommitDiffLoaded
- type MsgConnectedUserLoadPlanned
- type MsgConnectedUserLoaded
- type MsgCopyPullRequestBuildRunPopupContentRequested
- type MsgCopyPullRequestURLRequested
- type MsgCopySelectedDetailTextRequested
- type MsgCurrentDetailImageHTMLLoadPlanned
- type MsgCurrentDetailImageHTMLLoaded
- type MsgCurrentDetailImageLoadPlanned
- type MsgCurrentDetailImageLoaded
- type MsgDetailMotionRequested
- type MsgDetailMotionResolved
- type MsgDetailSearchWordResolved
- type MsgDetailViewSyncPlanResolved
- type MsgDetailViewportRequested
- type MsgDetailViewportResolved
- type MsgDetailYankRequested
- type MsgDisplayCommitChangesRequested
- type MsgDisplayConfigApplied
- type MsgErrorReported
- type MsgExecuteSelectedActionsPopupActionRequested
- type MsgExitReviewMode
- type MsgFeedbackSet
- type MsgFocusActionsPopupList
- type MsgFocusActionsPopupSearch
- type MsgFocusDetailRenderedLineResolved
- type MsgFocusPanelView
- type MsgHelpPageNavigationRequested
- type MsgInlineCommentDeleteRequested
- type MsgInlineCommentDeleted
- type MsgInlineCommentReplySubmitRequested
- type MsgInlineCommentReplySubmitted
- type MsgInlineCommentResolutionApplied
- type MsgInlineCommentResolutionRequested
- type MsgInlineCommentUpdateRequested
- type MsgInlineCommentUpdated
- type MsgIssueDetailLoadPlanned
- type MsgIssueDetailLoaded
- type MsgKeymapOverridesApplied
- type MsgLineNavigationRequested
- type MsgLinksConfigApplied
- type MsgLoadingSpinnerTick
- type MsgModalEditorClosed
- type MsgModalEditorExternalEditFinished
- type MsgModalEditorExternalEditRequested
- type MsgModalEditorLineInputRequested
- type MsgModalEditorMultilineInputRequested
- type MsgModalEditorOpened
- type MsgModalEditorSubmitFinished
- type MsgModalEditorSubmitRequested
- type MsgMoveActionsPopupSelection
- type MsgMoveActionsPopupSelectionToBottom
- type MsgMoveActionsPopupSelectionToTop
- type MsgMoveReviewComment
- type MsgMoveReviewFile
- type MsgMoveReviewSelection
- type MsgMoveReviewSelectionToBottom
- type MsgMoveReviewSelectionToTop
- type MsgMoveSideSelection
- type MsgMoveSideSelectionToBottom
- type MsgMoveSideSelectionToTop
- type MsgNextSideView
- type MsgNotificationDoneRequested
- type MsgNotificationMutationFinished
- type MsgNotificationMutationStarted
- type MsgNotificationReadRequested
- type MsgNotificationsCacheHydrated
- type MsgNotificationsLoadPlanned
- type MsgNotificationsLoaded
- type MsgOpenActionsPopup
- type MsgOpenAssigneePickerRequested
- type MsgOpenBrowserURLFinished
- type MsgOpenBrowserURLRequested
- type MsgOpenDetailPullRequestCommentRequested
- type MsgOpenDetailRequested
- type MsgOpenInlineCommentReplyRequested
- type MsgOpenLinkUnderCursorRequested
- type MsgOpenLinkUnderCursorResolved
- type MsgOpenNotificationInBrowserRequested
- type MsgOpenPullRequestBuildRunPopupLinkRequested
- type MsgOpenPullRequestBuildRunPopupLinkResolved
- type MsgOpenPullRequestByURLPromptRequested
- type MsgOpenPullRequestByURLSubmitRequested
- type MsgOpenPullRequestCommentComposerRequested
- type MsgOpenPullRequestCustomSearchEditorRequested
- type MsgOpenPullRequestInBrowserRequested
- type MsgOpenPullRequestInBrowserShortcutRequested
- type MsgOpenPullRequestInBrowserView
- type MsgOpenPullRequestInDetailFullscreen
- type MsgOpenPullRequestInPastedTabView
- type MsgOpenReactionPickerRequested
- type MsgOpenSearch
- type MsgOpenThemePickerRequested
- type MsgPageNavigationRequested
- type MsgPageNavigationResolved
- type MsgPendingPullRequestReviewCanceled
- type MsgPendingPullRequestReviewSubmitRequested
- type MsgPendingPullRequestReviewSubmitted
- type MsgPersistentCacheCleared
- type MsgPreviousSideView
- type MsgPullRequestAssigneesUpdated
- type MsgPullRequestAutoMergeApplied
- type MsgPullRequestAutoMergeMutationRequested
- type MsgPullRequestBranchUpdateRequested
- type MsgPullRequestBranchUpdated
- type MsgPullRequestBuildRunJobLogLoadRequested
- type MsgPullRequestBuildRunJobLogLoaded
- type MsgPullRequestBuildRunLoadRequested
- type MsgPullRequestBuildRunLoaded
- type MsgPullRequestBuildRunPopupClipboardPrepared
- type MsgPullRequestBuildRunPopupClosed
- type MsgPullRequestBuildRunPopupOpened
- type MsgPullRequestCommentDeleteRequested
- type MsgPullRequestCommentDeleted
- type MsgPullRequestCommentSubmitRequested
- type MsgPullRequestCommentSubmitted
- type MsgPullRequestCommentUpdateRequested
- type MsgPullRequestCommentUpdated
- type MsgPullRequestCustomSearchSubmitRequested
- type MsgPullRequestCustomSearchSubmitted
- type MsgPullRequestDescriptionEditApplied
- type MsgPullRequestDescriptionEditRequested
- type MsgPullRequestDetailCacheHydrated
- type MsgPullRequestDetailLoadPlanned
- type MsgPullRequestDetailLoaded
- type MsgPullRequestDiffCacheHydrated
- type MsgPullRequestDiffLoadPlanned
- type MsgPullRequestDiffLoaded
- type MsgPullRequestInvalidatedWithFeedback
- type MsgPullRequestLifecycleApplied
- type MsgPullRequestLifecycleMutationRequested
- type MsgPullRequestMergeQueueApplied
- type MsgPullRequestMergeQueueMutationRequested
- type MsgPullRequestMergeWhenReadyApplied
- type MsgPullRequestMergeWhenReadyRequested
- type MsgPullRequestRequestChangesSubmitRequested
- type MsgPullRequestReviewCommentSubmitRequested
- type MsgPullRequestSearchesApplied
- type MsgPullRequestSquashMergeRequested
- type MsgPullRequestTitleEditApplied
- type MsgPullRequestTitleEditRequested
- type MsgPullRequestURLReadFromClipboard
- type MsgPullRequestsCacheHydrated
- type MsgPullRequestsLoadPlanned
- type MsgPullRequestsLoaded
- type MsgReRequestPullRequestReviewRequested
- type MsgReactionAdded
- type MsgReactionRemovalRequested
- type MsgReactionRemoved
- type MsgReadPullRequestURLFromClipboardRequested
- type MsgRefreshActiveViewRequested
- type MsgRefreshNotificationsRequested
- type MsgRefreshPullRequestListRequested
- type MsgRefreshPullRequestRequested
- type MsgReleaseDetailLoadPlanned
- type MsgReleaseDetailLoaded
- type MsgRemovePastedPullRequestRequested
- type MsgRepeatActionsPopupSearch
- type MsgRepeatDetailSearchRequested
- type MsgRepeatPullRequestSearch
- type MsgRepeatReviewFileTreeSearch
- type MsgRepeatSideSearch
- type MsgReviewInlineCommentPendingReviewPrepared
- type MsgReviewInlineCommentSubmitRequested
- type MsgReviewInlineCommentSubmitted
- type MsgReviewSessionStarted
- type MsgReviewStoryRequested
- type MsgSearchDraftChanged
- type MsgSearchEditorInputRequested
- type MsgSearchWordUnderCursor
- type MsgSelectedDetailClipboardPrepared
- type MsgSetAllDetailFolds
- type MsgSetAllDetailFoldsResolved
- type MsgSetAllReviewTreeFolds
- type MsgSideListViewportRequested
- type MsgStartPullRequestReviewRequested
- type MsgStartReviewFileTreeSearch
- type MsgStoryReviewConfigApplied
- type MsgStoryReviewPrepared
- type MsgSubmitAssigneePickerRequested
- type MsgSubmitReviewFileTreeSearch
- type MsgSubmitSearch
- type MsgSubmitSelectedActionsPopupActionRequested
- type MsgThemePresetSaved
- type MsgThemePresetSelected
- type MsgToggleAssigneePickerSelectionRequested
- type MsgToggleDetailWordWrapRequested
- type MsgToggleHelp
- type MsgToggleInlineCommentResolutionRequested
- type MsgToggleInlineConversationVisibility
- type MsgToggleInlineConversationVisibilityResolved
- type MsgToggleReviewTreeRowVisibility
- type MsgTransientErrorPopupExpired
- type NotificationMutations
- type NotificationQueries
- type NotificationRow
- type OverlayKind
- type OverlayState
- type PaneLayoutSize
- type PanelFrame
- type PanelState
- type Program
- func (program *Program) ApplyCacheConfig(config appconfig.CacheConfig) error
- func (program *Program) ApplyDisplayConfig(config appconfig.DisplayConfig)
- func (program *Program) ApplyKeymapOverrides(overrides appconfig.KeymapOverrides)
- func (program *Program) ApplyLinksConfig(config appconfig.LinksConfig)
- func (program *Program) ApplyPullRequestSearches(searches []appconfig.PullRequestSearch)
- func (program *Program) ApplyStoryReviewConfig(config story.Config)
- func (program *Program) OpenPullRequestByURL(rawURL string) error
- func (program *Program) OpenReviewByURL(rawURL string) error
- func (program *Program) OpenStoryReviewByURL(rawURL string) error
- func (program *Program) Run() error
- type PullRequestListQueries
- type PullRequestMutations
- type PullRequestRow
- type PullRequestTab
- type PullRequestTabSeed
- type ReactionMutations
- type ReviewMode
- type ReviewMutations
- type ScreenLayout
- type ScreenMode
- type ScreenState
- func (state ScreenState) ActiveSideView() ViewState
- func (state ScreenState) ActiveView() ViewState
- func (state ScreenState) AllowsMainCursor() bool
- func (state ScreenState) FocusViewNumber(number int) ScreenState
- func (state ScreenState) KeyHintContext() KeyHintContext
- func (state ScreenState) MainViewResolver() MainViewResolver
- func (state ScreenState) NextSideView() ScreenState
- func (state ScreenState) NextTab() ScreenState
- func (state ScreenState) PreviousSideView() ScreenState
- func (state ScreenState) PreviousTab() ScreenState
- func (state ScreenState) ViewByNumber(number int) (ViewState, bool)
- func (state ScreenState) WithOverlay(overlay OverlayState) ScreenState
- func (state ScreenState) WithViewTabs(viewNumber int, activeTab int, tabs []TabState) ScreenState
- type SearchTargetKind
- type SeedData
- type SessionQueries
- type SidebarSchema
- type StoryReviewMode
- type TabState
- type ThemePresetStore
- type ViewRenderer
- type ViewState
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)
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 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 ClipboardWriter ¶ added in v0.4.0
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 ExternalEditor ¶ added in v0.4.0
type ExternalEditor = externalEditor
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 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 MarkdownRenderer ¶
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 (*Model) ActionsPopupFilteredActionIndexes ¶
func (*Model) ActionsPopupSearchActive ¶
func (*Model) ActionsPopupSearchQuery ¶
func (*Model) ActionsPopupSelectedActionIndex ¶
func (*Model) ActionsPopupSelectedVisibleIndex ¶
func (*Model) ActionsPopupVisible ¶
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) DetailContent ¶
func (*Model) DetailSearchQuery ¶
func (*Model) FocusActionsPopupSearch ¶
func (model *Model) FocusActionsPopupSearch()
func (*Model) FocusDetailFullscreenFromSideFocus ¶ added in v0.6.1
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) FullPageActionsPopupDown ¶
func (*Model) FullPageActionsPopupUp ¶
func (*Model) FullscreenPane ¶
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) Notifications ¶
func (*Model) OpenActionsPopup ¶
func (*Model) OpenDetail ¶
func (model *Model) OpenDetail()
func (*Model) PageActionsPopupDown ¶
func (*Model) PageActionsPopupUp ¶
func (*Model) PaneLayoutSize ¶
func (model *Model) PaneLayoutSize() PaneLayoutSize
func (*Model) PaneVisible ¶
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) ScreenState ¶ added in v0.4.0
func (model *Model) ScreenState() ScreenState
func (*Model) SearchActive ¶
func (*Model) SearchDraft ¶
func (*Model) SearchTarget ¶
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) SelectPullRequestIndex ¶ added in v0.6.1
func (model *Model) SelectPullRequestIndex(tab PullRequestTab, index int)
func (*Model) SelectUserIndex ¶ added in v0.6.1
func (*Model) SelectedNotification ¶
func (model *Model) SelectedNotification() (githubdomain.Notification, bool)
func (*Model) SelectedNotificationIndex ¶
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) SelectedVisibleNotificationIndex ¶
func (*Model) SelectedVisiblePullRequestIndex ¶
func (model *Model) SelectedVisiblePullRequestIndex(tab PullRequestTab) int
func (*Model) SelectedVisibleUserIndex ¶
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) SetNotificationRows ¶
func (model *Model) SetNotificationRows(rows []NotificationRow)
func (*Model) SetNotifications ¶
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) 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) UpdateSearchDraft ¶
func (*Model) UserSearchQuery ¶
func (*Model) VisibleNotifications ¶
func (*Model) VisiblePullRequests ¶
func (*Model) VisibleUsers ¶
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 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 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 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 MsgCurrentDetailImageLoadPlanned ¶ added in v0.6.1
type MsgCurrentDetailImageLoadPlanned struct {
ImageURL string
}
type MsgCurrentDetailImageLoaded ¶ added in v0.6.1
type MsgDetailMotionRequested ¶ added in v0.6.1
type MsgDetailMotionResolved ¶ added in v0.6.1
type MsgDetailSearchWordResolved ¶ added in v0.6.1
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 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 MsgFocusPanelView ¶ added in v0.6.1
type MsgFocusPanelView struct {
Number int
}
type MsgHelpPageNavigationRequested ¶ added in v0.6.1
type MsgHelpPageNavigationRequested struct {
}
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 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 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 {
}
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 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 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 MsgOpenBrowserURLRequested ¶ added in v0.6.1
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 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 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 {
}
type MsgPageNavigationResolved ¶ added in v0.6.1
type MsgPageNavigationResolved struct {
}
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 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 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 MsgPullRequestCommentSubmitted ¶ added in v0.6.1
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 MsgPullRequestDescriptionEditRequested ¶ added in v0.6.1
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 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 MsgPullRequestReviewCommentSubmitRequested ¶ added in v0.6.1
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 MsgPullRequestTitleEditRequested ¶ added in v0.6.1
type MsgPullRequestURLReadFromClipboard ¶ added in v0.6.1
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 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 MsgSetAllDetailFolds ¶ added in v0.6.1
type MsgSetAllDetailFolds struct {
Collapsed bool
}
type MsgSetAllDetailFoldsResolved ¶ added in v0.6.1
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 MsgStoryReviewPrepared ¶ added in v0.6.1
type MsgStoryReviewPrepared struct {
Prepared preparedStoryReview
Err error
}
type MsgSubmitAssigneePickerRequested ¶ added in v0.6.1
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 MsgThemePresetSelected ¶ added in v0.6.1
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 Program ¶
type Program struct {
// contains filtered or unexported fields
}
func NewProgram ¶
func NewProgram() *Program
func NewProgramWithModel ¶
func NewProgramWithModelAndDeps ¶ added in v0.4.0
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) OpenPullRequestByURL ¶
func (*Program) OpenReviewByURL ¶
func (*Program) OpenStoryReviewByURL ¶
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 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
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 ThemePresetStore ¶ added in v0.4.0
type ThemePresetStore = themePresetStore
type ViewRenderer ¶ added in v0.4.0
Source Files
¶
- actions_popup.go
- actions_popup_actions.go
- actions_popup_async_cmd.go
- actions_popup_feedback_error.go
- actions_popup_interaction.go
- actions_popup_list.go
- actions_popup_model.go
- actions_popup_presenter.go
- actions_popup_presenter_adapter.go
- actions_popup_search_repeat.go
- actions_popup_view.go
- actions_popup_widget_state.go
- actions_popup_widget_state_adapter.go
- ansi_color.go
- assignee_picker_child_state.go
- assignee_picker_child_state_adapter.go
- assignee_picker_search_cmd.go
- browser_changes.go
- browser_changes_read_model.go
- browser_changes_read_model_adapter.go
- browser_changes_render_cache.go
- browser_conversation_detail_document.go
- browser_conversation_document.go
- browser_detail_child_state.go
- browser_detail_read_model.go
- browser_detail_read_model_adapter.go
- browser_detail_sections.go
- build_store.go
- build_store_adapter.go
- cache_clear.go
- cache_config.go
- cache_config_runtime.go
- character_motion_target_read_model.go
- character_motion_target_read_model_adapter.go
- cmd.go
- cmd_actions_popup_async_requests.go
- cmd_detail_fold.go
- cmd_detail_motion.go
- cmd_interaction.go
- cmd_interaction_build.go
- cmd_interaction_detail_search.go
- cmd_interaction_io.go
- cmd_interaction_link_clipboard.go
- cmd_interaction_modal.go
- cmd_interaction_navigation.go
- cmd_interaction_refresh.go
- cmd_modal_editor_submit_requests.go
- cmd_persistent_cache.go
- cmd_popup_feature_request_requests.go
- cmd_popup_feature_requests.go
- cmd_runtime.go
- cmd_transient_error_popup.go
- comment_box.go
- comment_on_pr.go
- comment_on_pr_help.go
- commit_diff_adapter.go
- commit_diff_commands.go
- commit_diff_state.go
- completion_apply.go
- completion_results.go
- connected_user.go
- deps.go
- description_cursor_action_read_model.go
- description_cursor_action_read_model_adapter.go
- detail_bulk_fold.go
- detail_character_motion.go
- detail_character_motion_bindings.go
- detail_character_motion_selectors.go
- detail_child_state.go
- detail_child_state_adapter.go
- detail_cursor.go
- detail_cursor_read_model_adapter.go
- detail_cursor_selectors.go
- detail_document.go
- detail_document_text.go
- detail_document_view.go
- detail_image.go
- detail_image_html_apply.go
- detail_image_loader.go
- detail_image_render.go
- detail_image_source_read_model.go
- detail_image_source_read_model_adapter.go
- detail_read_model.go
- detail_read_model_adapter.go
- detail_render_state.go
- detail_row_render.go
- detail_search.go
- detail_store.go
- detail_store_adapter.go
- detail_styled_text.go
- detail_tabs.go
- detail_view_state.go
- detail_view_sync_plan.go
- detail_viewport_render_plan.go
- detail_visual_mode_bindings.go
- detail_word_wrap.go
- dispatch.go
- display_config.go
- doc.go
- domain_value_support.go
- editor_dispatch.go
- error_popup.go
- external_editor.go
- feedback.go
- footer.go
- footer_presenter.go
- footer_presenter_adapter.go
- framed_overlay_view.go
- gh_action_error.go
- gh_command_display.go
- gh_command_status.go
- gocui_color.go
- gocui_errors.go
- help.go
- help_presenter.go
- help_presenter_adapter.go
- icons.go
- image_load_coordinator.go
- inline_comment.go
- inline_comment_body.go
- inline_comment_diff_preview.go
- inline_comment_edit.go
- inline_comment_reply.go
- inline_comment_resolution.go
- interaction_capabilities.go
- key_sequence.go
- keybinding_label_resolver.go
- keybinding_label_resolver_adapter.go
- keymap_catalog.go
- link_opener.go
- list_viewport_state.go
- loading_spinner.go
- manual_refresh_notifications.go
- manual_refresh_preflight.go
- manual_refresh_state.go
- manual_refresh_state_adapter.go
- markdown_chroma.go
- markdown_image.go
- markdown_image_preprocess.go
- markdown_style.go
- modal_editor.go
- modal_editor_external.go
- modal_editor_feedback_error.go
- modal_editor_lifecycle.go
- modal_editor_open_descriptor.go
- modal_editor_state.go
- modal_editor_state_adapter.go
- modal_editor_submit_async.go
- modal_editor_submit_descriptor.go
- modal_editor_submit_status.go
- modal_editor_view.go
- modal_editor_wrap.go
- mode_descriptor.go
- model.go
- model_helpers.go
- model_navigation.go
- model_program_transitions.go
- msg.go
- msg_actions_popup.go
- msg_async.go
- msg_feature_async.go
- msg_interaction.go
- msg_mutation_applied.go
- msg_popup_editor_mutations.go
- msg_popup_feature_requests.go
- msg_runtime_config.go
- msg_workflow.go
- multiline_editor.go
- multiline_editor_input.go
- multiline_editor_navigation.go
- navigation_state.go
- navigation_state_adapter.go
- notification_actions.go
- notification_detail_loader.go
- notification_detail_render.go
- notification_done_store.go
- notification_done_store_adapter.go
- notification_loading.go
- notification_store.go
- notification_store_adapter.go
- notifications.go
- open_link.go
- optimistic_mutation_coordinator.go
- overlay_layout.go
- overlay_state.go
- overlay_state_adapter.go
- pane_layout.go
- pasted_pull_request_persistent_cache.go
- pasted_pull_request_remove.go
- pasted_pull_request_tab_adapter.go
- pasted_pull_request_tab_state.go
- pending_key_sequence_state_adapter.go
- pending_pull_request_review.go
- persistent_cache_shell_runtime.go
- persistent_notification_list_cache.go
- persistent_pull_request_cache.go
- persistent_pull_request_cache_helpers.go
- persistent_pull_request_list_cache.go
- pill.go
- planned_commands.go
- program.go
- program_character_motion.go
- program_detail_search.go
- program_keybindings.go
- program_navigation.go
- program_navigation_support.go
- program_state_models.go
- program_support.go
- program_view_state.go
- prompt_view_support.go
- pull_request_action_target.go
- pull_request_assignee.go
- pull_request_browser.go
- pull_request_browser_help.go
- pull_request_build.go
- pull_request_build_popup.go
- pull_request_build_popup_navigation.go
- pull_request_build_popup_render_state.go
- pull_request_build_popup_search.go
- pull_request_build_popup_search_repeat.go
- pull_request_build_popup_state.go
- pull_request_cache_apply.go
- pull_request_commands.go
- pull_request_comment_edit.go
- pull_request_comment_optimistic.go
- pull_request_commit_changes.go
- pull_request_copy.go
- pull_request_custom_search.go
- pull_request_detail.go
- pull_request_detail_document_cache.go
- pull_request_detail_loader.go
- pull_request_detail_render.go
- pull_request_detail_support.go
- pull_request_edit.go
- pull_request_edit_optimistic.go
- pull_request_list_store.go
- pull_request_list_store_adapter.go
- pull_request_merge_queue.go
- pull_request_overview_section.go
- pull_request_refresh.go
- pull_request_refresh_reporting.go
- pull_request_review.go
- pull_request_reviewer.go
- pull_request_search_repeat.go
- pull_request_stage_merge.go
- pull_request_status_check.go
- pull_requests.go
- reaction_picker.go
- reaction_remove.go
- reaction_render.go
- reaction_target.go
- refresh_active_view.go
- refresh_read_cache.go
- refresh_read_cache_adapter.go
- refresh_read_cache_state.go
- render.go
- render_pipeline.go
- render_pipeline_adapter.go
- render_shell_sync.go
- render_support.go
- repository_display.go
- resize.go
- resize_program.go
- review_comment_navigation_read_model.go
- review_comment_navigation_read_model_adapter.go
- review_diff_cache.go
- review_diff_detail_document.go
- review_diff_icons.go
- review_diff_intraline.go
- review_diff_line_target.go
- review_diff_loader.go
- review_diff_model.go
- review_diff_model_support.go
- review_diff_parser.go
- review_diff_render.go
- review_diff_target.go
- review_diff_team_owners.go
- review_diff_tree.go
- review_diff_tree_folds.go
- review_file_tree_search.go
- review_inline_comment.go
- review_inline_comment_help.go
- review_inline_comment_prefill.go
- review_inline_conversation.go
- review_navigation.go
- review_session.go
- review_session_child_state.go
- review_session_child_state_adapter.go
- review_session_content.go
- review_session_read_model.go
- review_session_read_model_adapter.go
- review_session_selectors.go
- review_store.go
- review_store_adapter.go
- review_story.go
- review_story_cache.go
- review_story_tree.go
- review_story_url.go
- review_submit.go
- review_tree_fold.go
- review_url.go
- runtime_config_state.go
- runtime_config_state_adapter.go
- runtime_dependency_adapter.go
- runtime_dispatch.go
- screen_projection.go
- screen_queries.go
- screen_state.go
- screen_state_model.go
- screen_state_program.go
- scrolloff.go
- search.go
- search_highlight.go
- search_match.go
- search_view.go
- search_view_presenter.go
- search_view_presenter_adapter.go
- search_widget_state_adapter.go
- selectable_list_view.go
- session_store.go
- session_store_adapter.go
- shell_refresh.go
- shell_runtime_state.go
- shell_sync.go
- side_search_repeat.go
- startup_state.go
- startup_state_adapter.go
- status_line.go
- status_line_presenter.go
- status_line_presenter_adapter.go
- status_store.go
- status_store_adapter.go
- story_review_config.go
- text_input.go
- text_support.go
- theme_picker.go
- theme_preset_runtime.go
- tree_sitter_highlight.go
- tree_sitter_highlight_cache.go
- tree_sitter_queries.go
- tree_sitter_queries_extended.go
- update.go
- update_actions_popup.go
- update_actions_popup_async.go
- update_actions_popup_navigation.go
- update_async.go
- update_detail_fold.go
- update_detail_motion.go
- update_error_popup.go
- update_feature_async.go
- update_interaction.go
- update_mutation_applied.go
- update_navigation_interaction.go
- update_pasted_pull_request_tab.go
- update_popup_editor_mutations.go
- update_popup_feature_requests.go
- update_pull_request_commands.go
- update_pull_request_navigation_state.go
- update_pull_request_popup_mutations.go
- update_review_interaction.go
- update_route_actions_popup.go
- update_route_core.go
- update_route_interactions.go
- update_route_mutations.go
- update_route_navigation.go
- update_route_workflow.go
- update_runtime_config.go
- update_shortcut_requests.go
- update_workflow.go
- value_support.go
- view_layout.go
- view_selectors.go
- view_url.go
- view_url_prompt.go
- widget_state.go
- workflow_command_runtime.go
- workflow_detail_image_commands.go
- workflow_notification_commands.go
- workflow_plan_selectors.go
- workflow_plans.go
- workflow_pull_request_detail_commands.go
- workflow_pull_request_list_commands.go
- workflow_session_commands.go
- workflow_stores.go
- yank_highlight.go
- yank_motion.go
- yank_url.go
- yank_url_help.go
Click to show internal directories.
Click to hide internal directories.