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.Queue

Description

Functions for the Queue view.

Synopsis

Documentation

drawViewQueue :: HumState -> Widget Name Source #

Draw the queue.

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

Draw individual row in queue.

queueSearch Source #

Arguments

:: Bool

Search direction, True for forward.

-> HumState 
-> EventM Name HumState 

Search queue for next instance of last search.

queueAddToPl Source #

Arguments

:: HumState 
-> String

Playlist name

-> EventM Name HumState 

Add highlighted songs to given playlist.

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

handle key inputs for Queue view.