Documentation
¶
Index ¶
- Variables
- type ChosenFeedMsg
- type Keymap
- type Model
- func (m Model) DisableDeleting() Model
- func (m Model) DisableSaving() Model
- func (m Model) FullHelp() [][]key.Binding
- func (m Model) Init() tea.Cmd
- func (m Model) SetSize(width, height int) tab.Tab
- func (m Model) ShortHelp() []key.Binding
- func (m Model) Style() tab.Style
- func (m Model) Title() string
- func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m Model) View() string
- type Popup
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultKeymap = Keymap{ Open: key.NewBinding( key.WithKeys("enter"), key.WithHelp("Enter", "Open"), ), ToggleFocus: key.NewBinding( key.WithKeys("left", "right", "h", "l"), key.WithHelp("←/→", "Move left/right"), ), RefreshArticles: key.NewBinding( key.WithKeys("r", "ctrl+r"), key.WithHelp("r/ctrl+r", "Refresh"), ), SaveArticle: key.NewBinding( key.WithKeys("s", "ctrl+s"), key.WithHelp("s/ctrl+s", "Save"), ), DeleteFromSaved: key.NewBinding( key.WithKeys("d", "ctrl+d"), key.WithHelp("d/ctrl+d", "Delete from saved"), ), CycleSelection: key.NewBinding( key.WithKeys("g"), key.WithHelp("g", "Cycle selection"), ), MarkAsUnread: key.NewBinding( key.WithKeys("u"), key.WithHelp("u", "Mark as unread"), ), }
DefaultKeymap contains the default key bindings for this tab
Functions ¶
This section is empty.
Types ¶
type ChosenFeedMsg ¶
ChosenFeedMsg is the message displayed when a category is successfully chosen.
type Keymap ¶
type Keymap struct {
Open key.Binding
ToggleFocus key.Binding
RefreshArticles key.Binding
SaveArticle key.Binding
DeleteFromSaved key.Binding
CycleSelection key.Binding
MarkAsUnread key.Binding
}
Keymap contains the key bindings for this tab
func (*Keymap) SetEnabled ¶ added in v1.5.1
SetEnabled allows to disable/enable shortcuts
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model contains the state of this tab
func (Model) DisableDeleting ¶
DisableDeleting disables the deleting of the article
func (Model) DisableSaving ¶
DisableSaving disables the saving of the article
type Popup ¶
type Popup struct {
// contains filtered or unexported fields
}
Popup is the feed popup where a user can create/edit a feed.
func NewPopup ¶
func NewPopup(colors *theme.Colors, bgRaw string, width, height int, oldName, oldURL, parent string) Popup
NewPopup returns a new feed popup.
Click to show internal directories.
Click to hide internal directories.