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

Description

Functions for the ex mode style prompt.

Synopsis

Documentation

exEnd :: HumState -> EventM Name (Next HumState) Source #

Executed after pressing enter in the ex mode prompt. Either executes the command, or updates the search state for n/N to work.

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

Handle key inputs for ex mode.

exPrefixTxt :: ExSubMode -> Text Source #

Prefix of ex mode prompt.

exCmdExecute :: [Text] -> HumState -> EventM Name (Next HumState) Source #

Executes ex mode command.