Documentation
¶
Index ¶
- func DownloadPoster(plexURL, thumbPath, token string) string
- func IsAvailable(fzfPath string) bool
- func Logo(version string)
- func PluralizeItems(count int) string
- func PromptAction(fzfPath string) (string, error)
- func PromptActionWithQueue(fzfPath string, queueCount int) (string, error)
- func PromptQueueAction(fzfPath string, queueCount int) (string, error)
- func SelectMedia(media []plex.MediaItem, prompt string, fzfPath string) (*plex.MediaItem, error)
- func SelectMediaType(fzfPath string) (string, error)
- func SelectMediaTypeWithQueue(fzfPath string, queueCount int) (string, error)
- func SelectMediaWithPreview(media []plex.MediaItem, prompt string, fzfPath string, plexURL string, ...) ([]int, error)
- func SelectQueueItemsForRemoval(queue []*plex.MediaItem, fzfPath string) ([]int, error)
- func SelectWithFzf(items []string, prompt string, fzfPath string) (string, int, error)
- type BrowserModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadPoster ¶
DownloadPoster downloads the poster image and returns the local path
func IsAvailable ¶
IsAvailable checks if fzf is available on the system
func Logo ¶ added in v0.2.0
func Logo(version string)
Logo prints a styled ASCII art logo with version information
func PluralizeItems ¶ added in v0.2.0
PluralizeItems returns "1 item" or "N items" based on count
func PromptAction ¶
PromptAction asks the user what action to take
func PromptActionWithQueue ¶ added in v0.2.0
PromptActionWithQueue asks the user what action to take, showing queue count
func PromptQueueAction ¶ added in v0.2.0
PromptQueueAction shows queue management options
func SelectMedia ¶
SelectMedia presents media items in fzf and returns the selected item
func SelectMediaType ¶
SelectMediaType asks user to select Movies or TV Shows
func SelectMediaTypeWithQueue ¶ added in v0.2.0
SelectMediaTypeWithQueue adds "View Queue" option when queue has items
func SelectMediaWithPreview ¶
func SelectMediaWithPreview(media []plex.MediaItem, prompt string, fzfPath string, plexURL string, plexToken string) ([]int, error)
SelectMediaWithPreview presents media in fzf with preview window showing metadata and poster
func SelectQueueItemsForRemoval ¶ added in v0.2.0
SelectQueueItemsForRemoval shows queue items for multi-select removal
Types ¶
type BrowserModel ¶
type BrowserModel struct {
// contains filtered or unexported fields
}
Browser is a TUI browser for media items
func NewBrowser ¶
func NewBrowser(media []plex.MediaItem, plexURL, plexToken string) *BrowserModel
NewBrowser creates a new browser model
func (*BrowserModel) GetSelected ¶
func (m *BrowserModel) GetSelected() *plex.MediaItem
GetSelected returns the selected media item (if any)
func (*BrowserModel) Init ¶
func (m *BrowserModel) Init() tea.Cmd
func (*BrowserModel) View ¶
func (m *BrowserModel) View() string