Documentation
¶
Index ¶
- Variables
- func ShortTimeSince(t time.Time) string
- func TimeSince(t time.Time) string
- type 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
- 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
- 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
- type 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
- 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)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ShortTimeSince ¶
ShortTimeSince returns human readable format for time.
Types ¶
type BookmarkTable ¶
type BookmarkTable struct {
// contains filtered or unexported fields
}
func NewBookmarkTable ¶
func NewBookmarkTable(openMetadata func(bookmark *models.Bookmark)) *BookmarkTable
func (*BookmarkTable) Blur ¶
func (b *BookmarkTable) Blur()
func (*BookmarkTable) Draw ¶
func (b *BookmarkTable) Draw(screen tcell.Screen)
func (*BookmarkTable) Focus ¶
func (b *BookmarkTable) Focus(delegate func(p tview.Primitive))
func (*BookmarkTable) GetFocusable ¶
func (b *BookmarkTable) GetFocusable() tview.Focusable
func (*BookmarkTable) GetSelection ¶
func (b *BookmarkTable) GetSelection() *models.Bookmark
func (*BookmarkTable) InputHandler ¶
func (b *BookmarkTable) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))
func (*BookmarkTable) ResetCursor ¶
func (b *BookmarkTable) ResetCursor()
func (*BookmarkTable) SetData ¶
func (b *BookmarkTable) SetData(data []*models.Bookmark)
func (*BookmarkTable) SetDeleteFunc ¶
func (b *BookmarkTable) SetDeleteFunc(delete func(bookmark *models.Bookmark))
func (*BookmarkTable) SetRect ¶
func (b *BookmarkTable) SetRect(x, y, width, height int)
func (*BookmarkTable) SetSortFunc ¶
func (b *BookmarkTable) SetSortFunc(sort func(column string, sort twidgets.Sort))
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
Metadata provides a form-like view to bookmark metadata
func NewMetadata ¶
func (*Metadata) InputHandler ¶
type Projects ¶
type Projects struct {
// contains filtered or unexported fields
}
func (*Projects) InputHandler ¶
type Search ¶
type Search struct { *tview.InputField // contains filtered or unexported fields }
type Tags ¶
type Tags struct {
// contains filtered or unexported fields
}
func (*Tags) InputHandler ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.