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.Modes.PromptMode

Description

Functions for prompts.

Synopsis

Documentation

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

Handles key events for playlist select prompt.

songBulkAddtoNewPl :: Vector Song -> Bool -> HumState -> EventM n HumState Source #

Add given songs to new playlist entered in prompt.

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

Handles key events for generic text prompt.

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

Handles key events for generic yes/no prompt.