Copyright | (c) Itai Y. Efrat 2020-2021 |
---|---|
License | GPLv2-or-later (see LICENSE) |
Maintainer | Itai Y. Efrat <itai3397@gmail.com> |
Safe Haskell | None |
Language | Haskell2010 |
Types!
Synopsis
- data HumState = HumState {}
- data LibraryState = LibraryState {}
- data PlaylistsState = PlaylistsState {}
- data HelpState = HelpState {
- helpText :: !Text
- helpSearchInt :: !Int
- data ExSubMode
- data ExState = ExState {
- exPrefix :: !ExSubMode
- exEditor :: !(Editor Text Name)
- searchDirection :: !Bool
- searchHistory :: ![Text]
- cmdHistory :: ![Text]
- data Prompts = Prompts {
- currentPrompt :: !PromptType
- promptTitle :: Text
- plSelectPrompt :: !(List Name (Maybe PlaylistName))
- textPrompt :: !(Editor Text Name)
- exitPromptFunc :: Bool -> HumState -> EventM Name HumState
- data PromptType
- data Clipboard = Clipboard {
- clSongs :: !SongList
- clPlName :: !(Maybe PlaylistName)
- data Mode
- type Highlight = Bool
- type SongList = List Name (Song, Highlight)
- type HumEvent = Either Tick (Response [Subsystem])
- data Name
- data Focus = Focus {}
- data FocQueue = FocQueue
- data FocLib
- data FocPlay
- data View
- data Tick = Tick
- statusL :: Lens' HumState (Maybe Status)
- queueL :: Lens' HumState SongList
- promptsL :: Lens' HumState Prompts
- playlistsL :: Lens' HumState PlaylistsState
- modeL :: Lens' HumState Mode
- libraryL :: Lens' HumState LibraryState
- hviewL :: Lens' HumState View
- helpL :: Lens' HumState HelpState
- focusL :: Lens' HumState Focus
- exL :: Lens' HumState ExState
- editableL :: Lens' HumState Bool
- currentSongL :: Lens' HumState (Maybe Song)
- clipboardL :: Lens' HumState Clipboard
- chanL :: Lens' HumState (BChan HumEvent)
- focQueueL :: Lens' Focus FocQueue
- focPlayL :: Lens' Focus FocPlay
- focLibL :: Lens' Focus FocLib
- focExL :: Lens' Focus Bool
- yalbumsL :: Lens' LibraryState (List Name (Value, Value))
- yalbumSortL :: Lens' LibraryState Bool
- songsL :: Lens' LibraryState (List Name Song)
- artistsL :: Lens' LibraryState (List Name Value)
- plSongsL :: Lens' PlaylistsState SongList
- plListL :: Lens' PlaylistsState (List Name PlaylistName)
- helpTextL :: Lens' HelpState Text
- helpSearchIntL :: Lens' HelpState Int
- searchHistoryL :: Lens' ExState [Text]
- searchDirectionL :: Lens' ExState Bool
- exPrefixL :: Lens' ExState ExSubMode
- exEditorL :: Lens' ExState (Editor Text Name)
- cmdHistoryL :: Lens' ExState [Text]
- textPromptL :: Lens' Prompts (Editor Text Name)
- promptTitleL :: Lens' Prompts Text
- plSelectPromptL :: Lens' Prompts (List Name (Maybe PlaylistName))
- exitPromptFuncL :: Lens' Prompts (Bool -> HumState -> EventM Name HumState)
- currentPromptL :: Lens' Prompts PromptType
- clSongsL :: Lens' Clipboard SongList
- clPlNameL :: Lens' Clipboard (Maybe PlaylistName)
Documentation
Describes the state of the app.
HumState | |
|
data LibraryState Source #
HelpState | |
|
Specific mode in the bottom prompt
ExState | |
|
Prompts | |
|
data PromptType Source #
PlSelectPrompt | Select playlist to add songs to |
YNPrompt | General yes/no prompt |
TextPrompt | General enter text and do stuff prompt |
Instances
Eq PromptType Source # | |
Defined in Hum.Types (==) :: PromptType -> PromptType -> Bool # (/=) :: PromptType -> PromptType -> Bool # | |
Show PromptType Source # | |
Defined in Hum.Types showsPrec :: Int -> PromptType -> ShowS # show :: PromptType -> String # showList :: [PromptType] -> ShowS # |
General input mode
NormalMode | Vim normal mode style movement |
ExMode | Type ex style commands or search |
PromptMode | Interact with a prompt |
Brick widget names
Instances
plSelectPromptL :: Lens' Prompts (List Name (Maybe PlaylistName)) Source #