hum-0.2.0.0: A TUI MPD client, inspired by ncmpcpp
Copyright(c) Itai Y. Efrat 2020-2021
LicenseGPLv2-or-later (see LICENSE)
MaintainerItai Y. Efrat <itai3397@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Hum.Views.Playlists

Description

Functions for the Playlist view.

Synopsis

Documentation

drawPlaylistLeft :: HumState -> Widget Name Source #

Draw left column in Playlist view.

drawPlaylistRight :: HumState -> Widget Name Source #

Draw right column in Playlist view.

playlistRow :: HumState -> Text -> Widget n Source #

Draw row in playlist column in Playlist view.

playlistSongRow :: HumState -> (Song, Highlight) -> Widget n Source #

Draw row in song column in Playlist view.

drawViewPlaylists :: HumState -> Widget Name Source #

Draw Playlist view.

playlistsMove Source #

Arguments

:: (forall e. List Name e -> List Name e)

Function to move the focused column with

-> HumState 
-> EventM Name HumState 

Move focused playlist column by given function

playlistsAddtoQ Source #

Arguments

:: Bool

Play first item added to queue

-> HumState 
-> EventM Name HumState 

Add selected element in Playlist view to queue. If the element is a playlist adds entire playlist.

playlistsSearch Source #

Arguments

:: Bool

Search direction, True for forward.

-> HumState 
-> EventM Name HumState 

Search focused playlist column for next instance of last search.

renamePl :: Text -> Bool -> HumState -> EventM n HumState Source #

Rename the given playlist with input from the text prompt.

handleEventPlaylists :: HumState -> BrickEvent Name HumEvent -> EventM Name (Next HumState) Source #

handle key inputs for Playlist view.