mirror of
https://github.com/zoriya/vex.git
synced 2026-06-01 10:05:54 +00:00
22 lines
377 B
Go
22 lines
377 B
Go
package feeds
|
|
|
|
import "github.com/charmbracelet/bubbles/key"
|
|
|
|
type ListKeyMap struct {
|
|
GoToPosts key.Binding
|
|
AddFeed key.Binding
|
|
}
|
|
|
|
func FeedsKeyMaps() *ListKeyMap {
|
|
return &ListKeyMap{
|
|
GoToPosts: key.NewBinding(
|
|
key.WithKeys("p"),
|
|
key.WithHelp("p", "Go to posts"),
|
|
),
|
|
AddFeed: key.NewBinding(
|
|
key.WithKeys("a"),
|
|
key.WithHelp("a", "Add feed"),
|
|
),
|
|
}
|
|
}
|