Documentation
¶
Index ¶
- Variables
- type ArchiveEmailMsg
- type AttachmentDownloadedMsg
- type BackToInboxMsg
- type CancelFilePickerMsg
- type Choice
- type ChooseServiceMsg
- type ClearStatusMsg
- type Composer
- type Credentials
- type DeleteEmailMsg
- type DiscardDraftMsg
- type DownloadAttachmentMsg
- type EmailActionDoneMsg
- type EmailBodyFetchedMsg
- type EmailResultMsg
- type EmailView
- type EmailsAppendedMsg
- type EmailsFetchedMsg
- type FetchErr
- type FetchMoreEmailsMsg
- type FetchingMoreEmailsMsg
- type FilePicker
- type FileSelectedMsg
- type GoToChoiceMenuMsg
- type GoToFilePickerMsg
- type GoToInboxMsg
- type GoToSendMsg
- type GoToSettingsMsg
- type Inbox
- type Login
- type ReplyToEmailMsg
- type RestoreDraftMsg
- type RestoreViewMsg
- type SendEmailMsg
- type SetComposerCursorToStartMsg
- type Status
- type ViewEmailMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DialogBoxStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color("#25A065")). Padding(1, 0). BorderTop(true). BorderLeft(true). BorderRight(true). BorderBottom(true) HelpStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("240")) SuccessStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("42")).Bold(true) InfoStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("42")).Bold(true) H1Style = lipgloss.NewStyle(). Foreground(lipgloss.Color("42")). Bold(true). Align(lipgloss.Center) H2Style = lipgloss.NewStyle(). Foreground(lipgloss.Color("42")). Bold(false). Align(lipgloss.Center) BodyStyle = lipgloss.NewStyle(). Bold(true) // A bit bold )
View Source
var DocStyle = lipgloss.NewStyle().Margin(1, 2)
Functions ¶
This section is empty.
Types ¶
type ArchiveEmailMsg ¶
type ArchiveEmailMsg struct {
UID uint32
}
type AttachmentDownloadedMsg ¶
type BackToInboxMsg ¶
type BackToInboxMsg struct{}
type CancelFilePickerMsg ¶
type CancelFilePickerMsg struct{}
type ChooseServiceMsg ¶
type ChooseServiceMsg struct {
Service string
}
type ClearStatusMsg ¶
type ClearStatusMsg struct{}
type Composer ¶
type Composer struct {
// contains filtered or unexported fields
}
Composer model holds the state of the email composition UI.
func NewComposer ¶
NewComposer initializes a new composer model.
func (*Composer) ResetConfirmation ¶
func (m *Composer) ResetConfirmation()
ResetConfirmation ensures a restored draft isn't stuck in the exit prompt.
type Credentials ¶
type DeleteEmailMsg ¶
type DeleteEmailMsg struct {
UID uint32
}
type DiscardDraftMsg ¶
type DiscardDraftMsg struct {
ComposerState *Composer
}
DiscardDraftMsg signals that a draft should be cached.
type DownloadAttachmentMsg ¶
type EmailActionDoneMsg ¶
type EmailBodyFetchedMsg ¶
type EmailBodyFetchedMsg struct {
Index int
Body string
Attachments []fetcher.Attachment
Err error
}
type EmailResultMsg ¶
type EmailResultMsg struct {
Err error
}
type EmailView ¶
type EmailView struct {
// contains filtered or unexported fields
}
func NewEmailView ¶
type EmailsAppendedMsg ¶
type EmailsFetchedMsg ¶
type FetchMoreEmailsMsg ¶
type FetchMoreEmailsMsg struct {
Offset uint32
}
type FetchingMoreEmailsMsg ¶
type FetchingMoreEmailsMsg struct{}
type FilePicker ¶
type FilePicker struct {
// contains filtered or unexported fields
}
func NewFilePicker ¶
func NewFilePicker(startPath string) *FilePicker
func (*FilePicker) Init ¶
func (m *FilePicker) Init() tea.Cmd
func (*FilePicker) View ¶
func (m *FilePicker) View() string
type FileSelectedMsg ¶
type FileSelectedMsg struct {
Path string
}
type GoToChoiceMenuMsg ¶
type GoToChoiceMenuMsg struct{}
type GoToFilePickerMsg ¶
type GoToFilePickerMsg struct{}
type GoToInboxMsg ¶
type GoToInboxMsg struct{}
type GoToSendMsg ¶
type GoToSettingsMsg ¶
type GoToSettingsMsg struct{}
type Login ¶
type Login struct {
// contains filtered or unexported fields
}
Login holds the state for the login form.
type ReplyToEmailMsg ¶
type RestoreDraftMsg ¶
type RestoreDraftMsg struct{}
RestoreDraftMsg signals that the cached draft should be restored.
type RestoreViewMsg ¶
type RestoreViewMsg struct{}
type SendEmailMsg ¶
type SetComposerCursorToStartMsg ¶
type SetComposerCursorToStartMsg struct{}
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
A simple model for showing a status message
type ViewEmailMsg ¶
type ViewEmailMsg struct {
Index int
}
Click to show internal directories.
Click to hide internal directories.