Versions in this module Expand all Collapse all v0 v0.1.0 Feb 12, 2020 Changes in this version + var CustomMetadataFields = make([]string, 0) + func ShortTimeSince(t time.Time) string + func TimeSince(t time.Time) string + type BookmarkTable struct + func NewBookmarkTable(openMetadata func(bookmark *models.Bookmark)) *BookmarkTable + func (b *BookmarkTable) Blur() + func (b *BookmarkTable) Draw(screen tcell.Screen) + func (b *BookmarkTable) Focus(delegate func(p tview.Primitive)) + func (b *BookmarkTable) GetFocusable() tview.Focusable + func (b *BookmarkTable) GetRect() (int, int, int, int) + func (b *BookmarkTable) GetSelection() *models.Bookmark + func (b *BookmarkTable) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive)) + func (b *BookmarkTable) ResetCursor() + func (b *BookmarkTable) SetData(data []*models.Bookmark) + func (b *BookmarkTable) SetDeleteFunc(delete func(bookmark *models.Bookmark)) + func (b *BookmarkTable) SetRect(x, y, width, height int) + func (b *BookmarkTable) SetSortFunc(sort func(column string, sort twidgets.Sort)) + type Metadata struct + func NewMetadata(doneFunc func(save bool, bookmark *models.Bookmark) bool) *Metadata + func (m *Metadata) Blur() + func (m *Metadata) Draw(screen tcell.Screen) + func (m *Metadata) Focus(delegate func(p tview.Primitive)) + func (m *Metadata) GetFocusable() tview.Focusable + func (m *Metadata) GetRect() (int, int, int, int) + func (m *Metadata) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive)) + func (m *Metadata) SetRect(x, y, width, height int) + func (m *Metadata) SetSearchFunc(searchFunc func(key, value string) ([]string, error)) + type Projects struct + func NewProjects() *Projects + func (p *Projects) Blur() + func (p *Projects) Draw(screen tcell.Screen) + func (p *Projects) Focus(delegate func(p tview.Primitive)) + func (p *Projects) GetFocusable() tview.Focusable + func (p *Projects) GetRect() (int, int, int, int) + func (p *Projects) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive)) + func (p *Projects) SetData(projects []*models.Project) + func (p *Projects) SetRect(x, y, width, height int) + func (p *Projects) SetSelectFunc(selectFunc func(project *models.Project)) + type Search struct + func NewSearch(searchFunc func(query string)) *Search + func (s *Search) Clear() + func (s *Search) Done(key tcell.Key) + type Tags struct + func NewTags() *Tags + func (t *Tags) Blur() + func (t *Tags) Draw(screen tcell.Screen) + func (t *Tags) Focus(delegate func(p tview.Primitive)) + func (t *Tags) GetFocusable() tview.Focusable + func (t *Tags) GetRect() (int, int, int, int) + func (t *Tags) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive)) + func (t *Tags) SetData(tags *map[string]int) + func (t *Tags) SetRect(x, y, width, height int) + type Window struct + func NewWindow(colors config.Colors, shortcuts *config.Shortcuts, db *storage.Database) *Window + func (w *Window) Blur() + func (w *Window) Draw(screen tcell.Screen) + func (w *Window) FilterByProject(project *models.Project) + func (w *Window) Focus(delegate func(p tview.Primitive)) + func (w *Window) GetFocusable() tview.Focusable + func (w *Window) GetRect() (int, int, int, int) + func (w *Window) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive)) + func (w *Window) RefreshBookmarks() + func (w *Window) Run() error + func (w *Window) Search(text string) + func (w *Window) SetRect(x, y, width, height int) + func (w *Window) SortBookmarks(column string, sort twidgets.Sort)