Documentation
¶
Index ¶
- Constants
- Variables
- func CliView(version string) (newUser bool, selectedUser string, confPath string, confDir string)
- func DoneAdding()
- func DrawItem(tv *TutView, item api.Item, main *tview.TextView, controls *tview.Flex, ...)
- func DrawItemControls(tv *TutView, item api.Item, controls *tview.Flex, ft config.FeedType)
- func DrawListItem(cfg *config.Config, item api.Item) (string, string)
- func FloorDate(t time.Time) time.Time
- func GetCurrentID(l *tview.List) uint
- func NewAccButton(tv *TutView, cnf *config.Config, name string, index int, isActive bool) *tview.Button
- func NewControlButton(tv *TutView, control Control) *tview.Button
- func NewControlView(cnf *config.Config) *tview.Flex
- func NewDropDown(cnf *config.Config) *tview.DropDown
- func NewHorizontalLine(cnf *config.Config) *tview.Box
- func NewInputField(cnf *config.Config) *tview.InputField
- func NewList(cnf *config.Config) *tview.List
- func NewModal(cnf *config.Config) *tview.Modal
- func NewScrollSleep(next func(), prev func()) *scrollSleep
- func NewTextArea(cnf *config.Config) *tview.TextArea
- func NewTextView(cnf *config.Config) *tview.TextView
- func NewTutView(selectedUser string)
- func NewVerticalLine(cnf *config.Config) *tview.Box
- func OpenEditor(tv *TutView, content string) (string, error)
- func OpenEditorLengthLimit(tv *TutView, s string, limit int) (string, error)
- func OutputDate(cfg *config.Config, status time.Time) string
- func SetByID(id uint, l *tview.List)
- func SetVars(config *config.Config, app *tview.Application, accounts *auth.AccountData)
- type Bottom
- type Card
- type CmdBar
- func (c *CmdBar) Autocomplete(curr string) []string
- func (c *CmdBar) Autocompleted(text string, index, source int) bool
- func (c *CmdBar) Back()
- func (c *CmdBar) ClearInput()
- func (c *CmdBar) DoneFunc(key tcell.Key)
- func (c *CmdBar) GetInput() string
- func (c *CmdBar) ShowError(s string)
- func (c *CmdBar) ShowMsg(s string)
- type ComposeControls
- type ComposeView
- func (cv *ComposeView) EditSpoiler()
- func (cv *ComposeView) EditText()
- func (cv *ComposeView) FocusLang()
- func (cv *ComposeView) FocusVisibility()
- func (cv *ComposeView) HasMedia() bool
- func (cv *ComposeView) IncludeQuote()
- func (cv *ComposeView) Post()
- func (cv *ComposeView) SetControls(ctrl ComposeControls)
- func (cv *ComposeView) SetStatus(reply *mastodon.Status, edit *mastodon.Status) error
- func (cv *ComposeView) ToggleCW()
- func (cv *ComposeView) UpdateContent()
- type Control
- type DisplayTootData
- type DisplayUserData
- type EditorView
- type Feed
- func CreateFeed(tv *TutView, f *config.Timeline) *Feed
- func NewBlocking(tv *TutView, tl *config.Timeline) *Feed
- func NewBookmarksFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewBoosts(tv *TutView, id mastodon.ID, tl *config.Timeline) *Feed
- func NewConversationsFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewFavoritedFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewFavoritesStatus(tv *TutView, id mastodon.ID, tl *config.Timeline) *Feed
- func NewFederatedFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewFollowRequests(tv *TutView, tl *config.Timeline) *Feed
- func NewFollowers(tv *TutView, id mastodon.ID, tl *config.Timeline) *Feed
- func NewFollowing(tv *TutView, id mastodon.ID, tl *config.Timeline) *Feed
- func NewHistoryFeed(tv *TutView, item api.Item, tl *config.Timeline) *Feed
- func NewHomeFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewHomeSpecialFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewListFeed(tv *TutView, l *mastodon.List, tl *config.Timeline) *Feed
- func NewListsFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewLocalFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewMuting(tv *TutView, tl *config.Timeline) *Feed
- func NewNotificatioMentionsFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewNotificationFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewTagFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewTagsFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewThreadFeed(tv *TutView, item api.Item, tl *config.Timeline) *Feed
- func NewUserFeed(tv *TutView, item api.Item, tl *config.Timeline) *Feed
- func NewUserSearchFeed(tv *TutView, tl *config.Timeline) *Feed
- func NewUsersAddListFeed(tv *TutView, l *mastodon.List, tl *config.Timeline) *Feed
- func NewUsersInListFeed(tv *TutView, l *mastodon.List, tl *config.Timeline) *Feed
- type FeedContent
- type FeedHolder
- type FeedList
- func (fl *FeedList) AddItem(text string, symbols string, id uint)
- func (fl *FeedList) Clear()
- func (fl *FeedList) GetCurrentID() uint
- func (fl *FeedList) GetItemCount() int
- func (fl *FeedList) InFocus(style config.Style)
- func (fl *FeedList) Next() (loadOlder bool)
- func (fl *FeedList) OutFocus(style config.Style)
- func (fl *FeedList) Prev() (loadNewer bool)
- func (fl *FeedList) Set(index int) (loadOlder bool, loadNewer bool)
- func (fl *FeedList) SetByID(id uint)
- func (fl *FeedList) SetCurrentItem(index int)
- type Field
- type HelpData
- type HelpView
- type InputUserType
- type Leader
- type LinkView
- type List
- type LoginView
- type MainView
- type Media
- type MediaInput
- type MediaList
- func (m *MediaList) AddFile(f string)
- func (m *MediaList) AddFromEdit(edit *mastodon.Status)
- func (m *MediaList) Delete()
- func (m *MediaList) Draw()
- func (m *MediaList) EditDesc()
- func (m *MediaList) Next()
- func (m *MediaList) Prev()
- func (m *MediaList) Reset()
- func (m *MediaList) SetFocus(reset bool)
- type ModalView
- type PageFocusAt
- type Poll
- type PollOption
- type PollView
- func (p *PollView) Add()
- func (p *PollView) AddPoll(np *mastodon.Poll)
- func (p *PollView) Delete()
- func (p *PollView) Edit()
- func (p *PollView) FocusExpiration()
- func (p *PollView) GetPoll() *mastodon.TootPoll
- func (p *PollView) HasPoll() bool
- func (p *PollView) Next()
- func (p *PollView) Prev()
- func (p *PollView) Reset()
- func (p *PollView) ToggleMultiple()
- type PreferenceView
- func (p *PreferenceView) AddField()
- func (p *PreferenceView) DeleteField()
- func (p *PreferenceView) EditBio()
- func (p *PreferenceView) EditDisplayname()
- func (p *PreferenceView) EditField()
- func (p *PreferenceView) FieldFocus()
- func (p *PreferenceView) FocusVisibility()
- func (p *PreferenceView) HasFieldFocus() bool
- func (p *PreferenceView) MainFocus()
- func (p *PreferenceView) NextField()
- func (p *PreferenceView) PrevField()
- func (p *PreferenceView) Save()
- func (p *PreferenceView) Update()
- type Shared
- type StatusBar
- type SubFocusAt
- type Tag
- type Timeline
- func (tl *Timeline) AddFeed(f *Feed, newPane bool)
- func (tl *Timeline) CloseCurrentPane()
- func (tl *Timeline) DeleteItemFeed()
- func (tl *Timeline) DrawContent()
- func (tl *Timeline) EndItemFeed()
- func (tl *Timeline) FindAndGoTo(ft config.FeedType, data string, hideBoosts, hideReplies bool) bool
- func (tl *Timeline) GetFeedContent() *FeedContent
- func (tl *Timeline) GetTitle() string
- func (tl *Timeline) HomeItemFeed()
- func (tl *Timeline) MoveCurrentPaneEnd()
- func (tl *Timeline) MoveCurrentPaneHome()
- func (tl *Timeline) MoveCurrentPaneLeft()
- func (tl *Timeline) MoveCurrentPaneRight()
- func (tl *Timeline) NextFeed()
- func (tl *Timeline) NextItemFeed()
- func (tl *Timeline) PrevFeed()
- func (tl *Timeline) PrevItemFeed()
- func (tl *Timeline) RemoveCurrent(quit bool) bool
- func (tl *Timeline) ScrollDown()
- func (tl *Timeline) ScrollUp()
- func (tl *Timeline) SetItemFeedIndex(index int)
- type TimelineFocusAt
- type Toot
- type Top
- type Tut
- type TutView
- func (tv *TutView) BlockingCommand()
- func (tv *TutView) BookmarksCommand()
- func (tv *TutView) BoostsCommand()
- func (tv *TutView) CleanExit(code int)
- func (tv *TutView) ClearNotificationsCommand()
- func (tv *TutView) ClearTemp()
- func (tv *TutView) ClosePaneCommand()
- func (tv *TutView) ComposeCommand()
- func (tv *TutView) DirectCommand()
- func (tv *TutView) EditCommand()
- func (tv *TutView) FavoritedCommand()
- func (tv *TutView) FavoritesCommand()
- func (tv *TutView) FederatedCommand()
- func (tv *TutView) FocusFeed(index int, ct *config.Timeline)
- func (tv *TutView) FocusMainNoHistory()
- func (tv *TutView) FollowRequestsCommand()
- func (tv *TutView) FollowersCommand()
- func (tv *TutView) FollowingCommand()
- func (tv *TutView) GetCurrentFeed() *Feed
- func (tv *TutView) GetCurrentItem() (api.Item, error)
- func (tv *TutView) HistoryCommand()
- func (tv *TutView) HomeCommand()
- func (tv *TutView) InitPost(status *mastodon.Status, original *mastodon.Status)
- func (tv *TutView) Input(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputCmdView(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputComposeView(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputEditorView(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputHelp(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputItem(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputLeaderKey(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputLinkView(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputList(event *tcell.EventKey, list *mastodon.List) *tcell.EventKey
- func (tv *TutView) InputLoginView(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputMainView(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputMainViewContent(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputMainViewFeed(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputMedia(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputMediaAdd(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputPollView(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputPreference(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputPreferenceFields(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputStatus(event *tcell.EventKey, item api.Item, status *mastodon.Status, ...) *tcell.EventKey
- func (tv *TutView) InputStatusHistory(event *tcell.EventKey, item api.Item, sr *mastodon.StatusHistory, ...) *tcell.EventKey
- func (tv *TutView) InputTag(event *tcell.EventKey, tag *mastodon.Tag) *tcell.EventKey
- func (tv *TutView) InputUser(event *tcell.EventKey, user *api.User, ut InputUserType) *tcell.EventKey
- func (tv *TutView) InputViewItem(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) InputVote(event *tcell.EventKey) *tcell.EventKey
- func (tv *TutView) ListPlacementCommand(lp config.ListPlacement)
- func (tv *TutView) ListSplitCommand(ls config.ListSplit)
- func (tv *TutView) ListsCommand()
- func (tv *TutView) LoadNewerCommand()
- func (tv *TutView) LocalCommand()
- func (tv *TutView) LoginCommand()
- func (tv *TutView) MentionsCommand()
- func (tv *TutView) MouseInput(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
- func (tv *TutView) MouseInputComposeView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
- func (tv *TutView) MouseInputHelpView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
- func (tv *TutView) MouseInputLinkView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
- func (tv *TutView) MouseInputLoginView(event *tcell.EventMouse, action tview.MouseAction)
- func (tv *TutView) MouseInputMainView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
- func (tv *TutView) MouseInputMediaView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
- func (tv *TutView) MouseInputModalView(event *tcell.EventMouse, action tview.MouseAction)
- func (tv *TutView) MouseInputPollView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
- func (tv *TutView) MouseInputPreferenceView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
- func (tv *TutView) MouseInputVoteView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
- func (tv *TutView) MovePaneEnd()
- func (tv *TutView) MovePaneHome()
- func (tv *TutView) MovePaneLeft()
- func (tv *TutView) MovePaneRight()
- func (tv *TutView) MutingCommand()
- func (tv *TutView) NextAcct()
- func (tv *TutView) NextFeed()
- func (tv *TutView) NotificationsCommand()
- func (tv *TutView) PaneCommand(index string)
- func (tv *TutView) PreferencesCommand()
- func (tv *TutView) PrevAcct()
- func (tv *TutView) PrevFeed()
- func (tv *TutView) PrevFocus()
- func (tv *TutView) ProfileCommand()
- func (tv *TutView) ProportionsCommand(lp string, cp string)
- func (tv *TutView) RedrawContent()
- func (tv *TutView) RedrawControls()
- func (tv *TutView) RedrawPoll(poll *mastodon.Poll)
- func (tv *TutView) RefetchCommand()
- func (tv *TutView) SetPage(f PageFocusAt)
- func (tv *TutView) ShouldSync()
- func (tv *TutView) ShowError(s string)
- func (tv *TutView) SpecialCommand(hideBoosts, hideReplies bool)
- func (tv *TutView) TagCommand(tag string)
- func (tv *TutView) TagFollowCommand(tag string)
- func (tv *TutView) TagUnfollowCommand(tag string)
- func (tv *TutView) TagsCommand()
- func (tv *TutView) ToggleStickToTop()
- type TutViewsHolder
- type UploadFile
- type User
- type ViewMode
- type VoteView
Constants ¶
View Source
const ( InputUserNormal = iota InputUserFollowRequest InputUserListAdd InputUserListDelete )
Variables ¶
View Source
var Accounts *auth.AccountData
View Source
var App *tview.Application
View Source
var Config *config.Config
Functions ¶
func DoneAdding ¶
func DoneAdding()
func DrawItemControls ¶
func GetCurrentID ¶
func NewAccButton ¶
func NewInputField ¶
func NewInputField(cnf *config.Config) *tview.InputField
func NewScrollSleep ¶
func NewScrollSleep(next func(), prev func()) *scrollSleep
func NewTutView ¶
func NewTutView(selectedUser string)
func OpenEditorLengthLimit ¶
func SetVars ¶
func SetVars(config *config.Config, app *tview.Application, accounts *auth.AccountData)
Types ¶
type CmdBar ¶
type CmdBar struct { View *tview.InputField // contains filtered or unexported fields }
func (*CmdBar) Autocomplete ¶
func (*CmdBar) ClearInput ¶
func (c *CmdBar) ClearInput()
type ComposeControls ¶
type ComposeControls uint
const ( ComposeNormal ComposeControls = iota ComposeMedia )
type ComposeView ¶
func NewComposeView ¶
func NewComposeView(tv *TutView) *ComposeView
func (*ComposeView) EditSpoiler ¶
func (cv *ComposeView) EditSpoiler()
func (*ComposeView) EditText ¶
func (cv *ComposeView) EditText()
func (*ComposeView) FocusLang ¶
func (cv *ComposeView) FocusLang()
func (*ComposeView) FocusVisibility ¶
func (cv *ComposeView) FocusVisibility()
func (*ComposeView) HasMedia ¶
func (cv *ComposeView) HasMedia() bool
func (*ComposeView) IncludeQuote ¶
func (cv *ComposeView) IncludeQuote()
func (*ComposeView) Post ¶
func (cv *ComposeView) Post()
func (*ComposeView) SetControls ¶
func (cv *ComposeView) SetControls(ctrl ComposeControls)
func (*ComposeView) SetStatus ¶
func (cv *ComposeView) SetStatus(reply *mastodon.Status, edit *mastodon.Status) error
func (*ComposeView) ToggleCW ¶
func (cv *ComposeView) ToggleCW()
func (*ComposeView) UpdateContent ¶
func (cv *ComposeView) UpdateContent()
type DisplayTootData ¶
type DisplayUserData ¶
type EditorView ¶
func NewEditorView ¶
func NewEditorView(tv *TutView) *EditorView
func (*EditorView) ExitTextAreaInput ¶
func (e *EditorView) ExitTextAreaInput()
type Feed ¶
type Feed struct { Data *feed.Feed List *FeedList Content *FeedContent Timeline *config.Timeline // contains filtered or unexported fields }
func NewFavoritesStatus ¶
func NewUsersAddListFeed ¶
func NewUsersInListFeed ¶
func (*Feed) DrawContent ¶
func (f *Feed) DrawContent()
func (*Feed) ListInFocus ¶
func (f *Feed) ListInFocus()
func (*Feed) ListOutFocus ¶
func (f *Feed) ListOutFocus()
type FeedContent ¶
func NewFeedContent ¶
func NewFeedContent(t *Tut) *FeedContent
type FeedHolder ¶
func (*FeedHolder) GetFeedList ¶
func (fh *FeedHolder) GetFeedList() *FeedList
func (*FeedHolder) GetTitle ¶
func (fh *FeedHolder) GetTitle() string
type FeedList ¶
type FeedList struct { Text *tview.List Symbol *tview.List // contains filtered or unexported fields }
func NewFeedList ¶
func (*FeedList) GetCurrentID ¶
func (*FeedList) GetItemCount ¶
func (*FeedList) SetCurrentItem ¶
type HelpView ¶
func NewHelpView ¶
type InputUserType ¶
type InputUserType uint
type Leader ¶
type Leader struct {
// contains filtered or unexported fields
}
func (*Leader) ResetInactive ¶
func (l *Leader) ResetInactive()
type LoginView ¶
func NewLoginView ¶
func NewLoginView(tv *TutView, accs *auth.AccountData) *LoginView
type MediaInput ¶
type MediaInput struct { View *tview.InputField // contains filtered or unexported fields }
func NewMediaInput ¶
func NewMediaInput(tv *TutView) *MediaInput
func (*MediaInput) AddRune ¶
func (m *MediaInput) AddRune(r rune)
func (*MediaInput) AutocompleteNext ¶
func (m *MediaInput) AutocompleteNext()
func (*MediaInput) AutocompletePrev ¶
func (m *MediaInput) AutocompletePrev()
func (*MediaInput) AutocompleteTab ¶
func (m *MediaInput) AutocompleteTab()
func (*MediaInput) CheckDone ¶
func (m *MediaInput) CheckDone()
func (*MediaInput) HandleChanges ¶
func (m *MediaInput) HandleChanges(text string)
type MediaList ¶
type MediaList struct { View *tview.Flex Files []UploadFile // contains filtered or unexported fields }
func NewMediaList ¶
func (*MediaList) AddFromEdit ¶
func (m *MediaList) AddFromEdit(edit *mastodon.Status)
type PageFocusAt ¶
type PageFocusAt uint
const ( LoginFocus PageFocusAt = iota MainFocus ViewFocus ModalFocus LinkFocus ComposeFocus MediaFocus MediaAddFocus CmdFocus VoteFocus HelpFocus EditorFocus PollFocus PreferenceFocus )
type PollOption ¶
type PollView ¶
func NewPollView ¶
func (*PollView) FocusExpiration ¶
func (p *PollView) FocusExpiration()
func (*PollView) ToggleMultiple ¶
func (p *PollView) ToggleMultiple()
type PreferenceView ¶
func NewPreferenceView ¶
func NewPreferenceView(tv *TutView) *PreferenceView
func (*PreferenceView) AddField ¶
func (p *PreferenceView) AddField()
func (*PreferenceView) DeleteField ¶
func (p *PreferenceView) DeleteField()
func (*PreferenceView) EditBio ¶
func (p *PreferenceView) EditBio()
func (*PreferenceView) EditDisplayname ¶
func (p *PreferenceView) EditDisplayname()
func (*PreferenceView) EditField ¶
func (p *PreferenceView) EditField()
func (*PreferenceView) FieldFocus ¶
func (p *PreferenceView) FieldFocus()
func (*PreferenceView) FocusVisibility ¶
func (p *PreferenceView) FocusVisibility()
func (*PreferenceView) HasFieldFocus ¶
func (p *PreferenceView) HasFieldFocus() bool
func (*PreferenceView) MainFocus ¶
func (p *PreferenceView) MainFocus()
func (*PreferenceView) NextField ¶
func (p *PreferenceView) NextField()
func (*PreferenceView) PrevField ¶
func (p *PreferenceView) PrevField()
func (*PreferenceView) Save ¶
func (p *PreferenceView) Save()
func (*PreferenceView) Update ¶
func (p *PreferenceView) Update()
type StatusBar ¶
func NewStatusBar ¶
type Timeline ¶
type Timeline struct { Feeds []*FeedHolder FeedFocusIndex int // contains filtered or unexported fields }
func NewTimeline ¶
func (*Timeline) CloseCurrentPane ¶
func (tl *Timeline) CloseCurrentPane()
func (*Timeline) DeleteItemFeed ¶
func (tl *Timeline) DeleteItemFeed()
func (*Timeline) DrawContent ¶
func (tl *Timeline) DrawContent()
func (*Timeline) EndItemFeed ¶
func (tl *Timeline) EndItemFeed()
func (*Timeline) FindAndGoTo ¶
func (*Timeline) GetFeedContent ¶
func (tl *Timeline) GetFeedContent() *FeedContent
func (*Timeline) HomeItemFeed ¶
func (tl *Timeline) HomeItemFeed()
func (*Timeline) MoveCurrentPaneEnd ¶
func (tl *Timeline) MoveCurrentPaneEnd()
func (*Timeline) MoveCurrentPaneHome ¶
func (tl *Timeline) MoveCurrentPaneHome()
func (*Timeline) MoveCurrentPaneLeft ¶
func (tl *Timeline) MoveCurrentPaneLeft()
func (*Timeline) MoveCurrentPaneRight ¶
func (tl *Timeline) MoveCurrentPaneRight()
func (*Timeline) NextItemFeed ¶
func (tl *Timeline) NextItemFeed()
func (*Timeline) PrevItemFeed ¶
func (tl *Timeline) PrevItemFeed()
func (*Timeline) RemoveCurrent ¶
func (*Timeline) ScrollDown ¶
func (tl *Timeline) ScrollDown()
func (*Timeline) SetItemFeedIndex ¶
type TimelineFocusAt ¶
type TimelineFocusAt uint
const ( FeedFocus TimelineFocusAt = iota NotificationFocus )
type Toot ¶
type Toot struct { Visibility string Boosted bool BoostedDisplayName string BoostedAcct string Bookmarked bool AccountDisplayName string Account string Spoiler bool CWText string SpoilerText string ShowSpoiler bool CWlabel string ContentText string Width int HasExtra bool Poll Poll Media []Media Card Card Replies int Boosts int Favorites int Edited bool Lang string Controls string }
type Tut ¶
type Tut struct { Client *api.AccountClient App *tview.Application Config *config.Config }
type TutView ¶
type TutView struct { Timeline *Timeline PageFocus PageFocusAt PrevPageFocus PageFocusAt SubFocus SubFocusAt Leader *Leader View *tview.Pages LoginView *LoginView MainView *MainView LinkView *LinkView ComposeView *ComposeView VoteView *VoteView PollView *PollView PreferenceView *PreferenceView HelpView *HelpView EditorView *EditorView ModalView *ModalView FileList []string // contains filtered or unexported fields }
func (*TutView) BlockingCommand ¶
func (tv *TutView) BlockingCommand()
func (*TutView) BookmarksCommand ¶
func (tv *TutView) BookmarksCommand()
func (*TutView) BoostsCommand ¶
func (tv *TutView) BoostsCommand()
func (*TutView) ClearNotificationsCommand ¶
func (tv *TutView) ClearNotificationsCommand()
func (*TutView) ClosePaneCommand ¶
func (tv *TutView) ClosePaneCommand()
func (*TutView) ComposeCommand ¶
func (tv *TutView) ComposeCommand()
func (*TutView) DirectCommand ¶
func (tv *TutView) DirectCommand()
func (*TutView) EditCommand ¶
func (tv *TutView) EditCommand()
func (*TutView) FavoritedCommand ¶
func (tv *TutView) FavoritedCommand()
func (*TutView) FavoritesCommand ¶
func (tv *TutView) FavoritesCommand()
func (*TutView) FederatedCommand ¶
func (tv *TutView) FederatedCommand()
func (*TutView) FocusMainNoHistory ¶
func (tv *TutView) FocusMainNoHistory()
func (*TutView) FollowRequestsCommand ¶
func (tv *TutView) FollowRequestsCommand()
func (*TutView) FollowersCommand ¶
func (tv *TutView) FollowersCommand()
func (*TutView) FollowingCommand ¶
func (tv *TutView) FollowingCommand()
func (*TutView) GetCurrentFeed ¶
func (*TutView) HistoryCommand ¶
func (tv *TutView) HistoryCommand()
func (*TutView) HomeCommand ¶
func (tv *TutView) HomeCommand()
func (*TutView) InitPost ¶
func (tv *TutView) InitPost(status *mastodon.Status, original *mastodon.Status)
func (*TutView) InputCmdView ¶
func (tv *TutView) InputCmdView(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputComposeView ¶
func (tv *TutView) InputComposeView(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputEditorView ¶
func (tv *TutView) InputEditorView(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputLeaderKey ¶
func (tv *TutView) InputLeaderKey(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputLinkView ¶
func (tv *TutView) InputLinkView(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputList ¶
func (tv *TutView) InputList(event *tcell.EventKey, list *mastodon.List) *tcell.EventKey
func (*TutView) InputLoginView ¶
func (tv *TutView) InputLoginView(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputMainView ¶
func (tv *TutView) InputMainView(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputMainViewContent ¶
func (tv *TutView) InputMainViewContent(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputMainViewFeed ¶
func (tv *TutView) InputMainViewFeed(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputMedia ¶
func (tv *TutView) InputMedia(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputMediaAdd ¶
func (tv *TutView) InputMediaAdd(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputPollView ¶
func (tv *TutView) InputPollView(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputPreference ¶
func (tv *TutView) InputPreference(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputPreferenceFields ¶
func (tv *TutView) InputPreferenceFields(event *tcell.EventKey) *tcell.EventKey
func (*TutView) InputStatus ¶
func (*TutView) InputStatusHistory ¶
func (*TutView) InputTag ¶
func (tv *TutView) InputTag(event *tcell.EventKey, tag *mastodon.Tag) *tcell.EventKey
func (*TutView) InputUser ¶
func (tv *TutView) InputUser(event *tcell.EventKey, user *api.User, ut InputUserType) *tcell.EventKey
func (*TutView) InputViewItem ¶
func (tv *TutView) InputViewItem(event *tcell.EventKey) *tcell.EventKey
func (*TutView) ListPlacementCommand ¶
func (tv *TutView) ListPlacementCommand(lp config.ListPlacement)
func (*TutView) ListSplitCommand ¶
func (*TutView) ListsCommand ¶
func (tv *TutView) ListsCommand()
func (*TutView) LoadNewerCommand ¶
func (tv *TutView) LoadNewerCommand()
func (*TutView) LocalCommand ¶
func (tv *TutView) LocalCommand()
func (*TutView) LoginCommand ¶
func (tv *TutView) LoginCommand()
func (*TutView) MentionsCommand ¶
func (tv *TutView) MentionsCommand()
func (*TutView) MouseInput ¶
func (tv *TutView) MouseInput(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
func (*TutView) MouseInputComposeView ¶
func (tv *TutView) MouseInputComposeView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
func (*TutView) MouseInputHelpView ¶
func (tv *TutView) MouseInputHelpView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
func (*TutView) MouseInputLinkView ¶
func (tv *TutView) MouseInputLinkView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
func (*TutView) MouseInputLoginView ¶
func (tv *TutView) MouseInputLoginView(event *tcell.EventMouse, action tview.MouseAction)
func (*TutView) MouseInputMainView ¶
func (tv *TutView) MouseInputMainView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
func (*TutView) MouseInputMediaView ¶
func (tv *TutView) MouseInputMediaView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
func (*TutView) MouseInputModalView ¶
func (tv *TutView) MouseInputModalView(event *tcell.EventMouse, action tview.MouseAction)
func (*TutView) MouseInputPollView ¶
func (tv *TutView) MouseInputPollView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
func (*TutView) MouseInputPreferenceView ¶
func (tv *TutView) MouseInputPreferenceView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
func (*TutView) MouseInputVoteView ¶
func (tv *TutView) MouseInputVoteView(event *tcell.EventMouse, action tview.MouseAction) (*tcell.EventMouse, tview.MouseAction)
func (*TutView) MovePaneEnd ¶
func (tv *TutView) MovePaneEnd()
func (*TutView) MovePaneHome ¶
func (tv *TutView) MovePaneHome()
func (*TutView) MovePaneLeft ¶
func (tv *TutView) MovePaneLeft()
func (*TutView) MovePaneRight ¶
func (tv *TutView) MovePaneRight()
func (*TutView) MutingCommand ¶
func (tv *TutView) MutingCommand()
func (*TutView) NotificationsCommand ¶
func (tv *TutView) NotificationsCommand()
func (*TutView) PaneCommand ¶
func (*TutView) PreferencesCommand ¶
func (tv *TutView) PreferencesCommand()
func (*TutView) ProfileCommand ¶
func (tv *TutView) ProfileCommand()
func (*TutView) ProportionsCommand ¶
func (*TutView) RedrawContent ¶
func (tv *TutView) RedrawContent()
func (*TutView) RedrawControls ¶
func (tv *TutView) RedrawControls()
func (*TutView) RedrawPoll ¶
func (tv *TutView) RedrawPoll(poll *mastodon.Poll)
func (*TutView) RefetchCommand ¶
func (tv *TutView) RefetchCommand()
func (*TutView) SetPage ¶
func (tv *TutView) SetPage(f PageFocusAt)
func (*TutView) ShouldSync ¶
func (tv *TutView) ShouldSync()
func (*TutView) SpecialCommand ¶
func (*TutView) TagCommand ¶
func (*TutView) TagFollowCommand ¶
func (*TutView) TagUnfollowCommand ¶
func (*TutView) TagsCommand ¶
func (tv *TutView) TagsCommand()
func (*TutView) ToggleStickToTop ¶
func (tv *TutView) ToggleStickToTop()
type TutViewsHolder ¶
var TutViews *TutViewsHolder
func (*TutViewsHolder) Next ¶
func (tvh *TutViewsHolder) Next()
func (*TutViewsHolder) Prev ¶
func (tvh *TutViewsHolder) Prev()
func (*TutViewsHolder) SetFocusedTutView ¶
func (tvh *TutViewsHolder) SetFocusedTutView(index int)
type UploadFile ¶
type VoteView ¶
func NewVoteView ¶
func (*VoteView) ToggleSelect ¶
func (v *VoteView) ToggleSelect()
Source Files
¶
- bottom.go
- cliview.go
- cmdbar.go
- commands.go
- composeview.go
- controls.go
- editorview.go
- feed.go
- helpers.go
- helpview.go
- input.go
- item.go
- item_list.go
- item_notification.go
- item_status.go
- item_tag.go
- item_user.go
- linkview.go
- list_helper.go
- loginview.go
- mainview.go
- media.go
- modalview.go
- open.go
- pollview.go
- preferenceview.go
- shared.go
- statusbar.go
- styled_elements.go
- timeline.go
- top.go
- tutview.go
- view.go
- voteview.go
Click to show internal directories.
Click to hide internal directories.