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 |
Functions for the Playlist view.
Synopsis
- drawPlaylistLeft :: HumState -> Widget Name
- drawPlaylistRight :: HumState -> Widget Name
- playlistRow :: HumState -> Text -> Widget n
- playlistSongRow :: HumState -> (Song, Highlight) -> Widget n
- drawViewPlaylists :: HumState -> Widget Name
- playlistsMove :: (forall e. List Name e -> List Name e) -> HumState -> EventM Name HumState
- playlistsAddtoQ :: Bool -> HumState -> EventM Name HumState
- playlistsSearch :: Bool -> HumState -> EventM Name HumState
- renamePl :: Text -> Bool -> HumState -> EventM n HumState
- handleEventPlaylists :: HumState -> BrickEvent Name HumEvent -> EventM Name (Next HumState)
Documentation
playlistSongRow :: HumState -> (Song, Highlight) -> Widget n Source #
Draw row in song column in Playlist view.
:: (forall e. List Name e -> List Name e) | Function to move the focused column with |
-> HumState | |
-> EventM Name HumState |
Move focused playlist column by given function
Add selected element in Playlist view to queue. If the element is a playlist adds entire playlist.
Search focused playlist column for next instance of last search.