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 |
Synopsis
- (?) :: (a -> b) -> (b -> c) -> a -> c
- meta :: Text -> Metadata -> Song -> Text
- mmeta :: Metadata -> Song -> Maybe Text
- secondsToTime :: Integer -> Text
- deleteHighlightedfromQ :: MonadMPD m => SongList -> m ()
- deleteBulkfromQ :: MonadMPD m => SongList -> m ()
- pasteSongstoQ :: MonadMPD m => SongList -> SongList -> m ()
- getHighlighted :: (Filterable t, Traversable t) => GenericList n t (e, Highlight) -> GenericList n t (e, Highlight)
- listPaste :: (Splittable t, Semigroup (t e)) => GenericList n t e -> GenericList n t e -> GenericList n t e
- deleteHighlighted :: HumState -> Lens' HumState SongList -> HumState
- yankHighlighted :: HumState -> Lens' HumState SongList -> HumState
- listToggleHighlight :: Traversable t => GenericList n t (e, Highlight) -> GenericList n t (e, Highlight)
- listHighlightSelected :: Traversable t => GenericList n t (e, Highlight) -> GenericList n t (e, Highlight)
- listUnhighlightAll :: Traversable t => GenericList n t (e, Highlight) -> GenericList n t (e, Highlight)
- saveListToPl :: MonadMPD m => SongList -> Text -> m ()
- overwriteListToPl :: MonadMPD m => SongList -> Text -> m ()
- saveEditedPl :: Bool -> HumState -> EventM n HumState
- deleteSelectedPl :: Bool -> HumState -> EventM n HumState
- unusedPlName :: PlaylistName -> IO PlaylistName
- duplicatePlaylist :: PlaylistName -> HumState -> EventM n HumState
- pastePlaylist :: HumState -> EventM n HumState
- songBulkAddtoQ :: Bool -> Vector Song -> HumState -> EventM n HumState
- songBulkAddtoPl :: String -> Vector Song -> HumState -> EventM n HumState
Documentation
(?) :: (a -> b) -> (b -> c) -> a -> c infixl 8 Source #
A backwards function composition operator that I love with my whole heart.
secondsToTime :: Integer -> Text Source #
Formats seconds to %M:%S.
deleteHighlightedfromQ :: MonadMPD m => SongList -> m () Source #
Deletes highlighted songs in list from queue, does not rebuild queue.
deleteBulkfromQ :: MonadMPD m => SongList -> m () Source #
Deletes list of songs from queue in MPD, does not rebuild queue.
pasteSongstoQ :: MonadMPD m => SongList -> SongList -> m () Source #
Adds songs to queue under the selected item in it in MPD, does not rebuild queue.
getHighlighted :: (Filterable t, Traversable t) => GenericList n t (e, Highlight) -> GenericList n t (e, Highlight) Source #
Produce list of highligted elements (and selected element) in input list.
:: (Splittable t, Semigroup (t e)) | |
=> GenericList n t e | List pasted into |
-> GenericList n t e | Pasted list |
-> GenericList n t e |
Paste one list into another under the selected item.
Delete highlighted element (and selected element) from list.
Copy highlighted element (and selected element) from list to Clipboard
.
listToggleHighlight :: Traversable t => GenericList n t (e, Highlight) -> GenericList n t (e, Highlight) Source #
Toggle selected items highlight status.
listHighlightSelected :: Traversable t => GenericList n t (e, Highlight) -> GenericList n t (e, Highlight) Source #
Highlight selcted item.
listUnhighlightAll :: Traversable t => GenericList n t (e, Highlight) -> GenericList n t (e, Highlight) Source #
Unhighlight selcted item.
Save list of songs to a stored playlist. If exists does nothing.
overwriteListToPl :: MonadMPD m => SongList -> Text -> m () Source #
Overwrite stored playlist with new song list.
saveEditedPl :: Bool -> HumState -> EventM n HumState Source #
Save edited playlist in Playlist view to disk.
deleteSelectedPl :: Bool -> HumState -> EventM n HumState Source #
Deletes selected playlist in Playlist view from disk.
unusedPlName :: PlaylistName -> IO PlaylistName Source #
Appends smallest number possible to playlist name for it to not be taken. Does nothing if name is untaken.
duplicatePlaylist :: PlaylistName -> HumState -> EventM n HumState Source #
Duplicates stored playlist on disk (with nonconflicting name).
pastePlaylist :: HumState -> EventM n HumState Source #
Pastes playlist in clipboard to disk (with nonconflicting name).
Adds list of songs to queue in MPD. Does not rebuild state.