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

Description

Shared functions for views.

Synopsis

Documentation

helpW :: HumState -> Widget Name Source #

Help widget. Parses the last search as a case insensitive POSIX regex.

helpW' :: HumState -> Widget Name Source #

Help widget. Parses the last search as an exact match.

helpText' :: Text Source #

Helper function that keeps Hum.UI tidy.

helpSearch Source #

Arguments

:: Bool

Search direction, True for forward.

-> HumState 
-> EventM Name HumState 

Updates which mathc is focused in the help buffer.

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

handle key events in help view.