Safe Haskell | None |
---|---|
Language | Haskell98 |
Simple bookmarks system: bookmarks are a list of tagged URIs.
This module is designed to be imported as qualified
.
- data Entry = Entry {}
- addCurrent :: (ControlIO m, MonadLogger m, MonadReader r m, Has MainView r, MonadError Text m, Alternative m) => [Text] -> m ()
- addCurrent' :: (ControlIO m, MonadLogger m, MonadReader r m, Has MainView r, MonadError Text m, Alternative m) => FilePath -> [Text] -> m ()
- add :: (ControlIO m, MonadLogger m, MonadError Text m, Alternative m) => FilePath -> Entry -> m ()
- select :: (ControlIO m, MonadError Text m) => m URI
- select' :: (ControlIO m, MonadError Text m) => FilePath -> [Text] -> m URI
- selectByTag :: (ControlIO m, MonadLogger m, MonadError Text m) => m [URI]
- deleteByTag :: (ControlIO m, MonadLogger m, MonadError Text m) => m ()
Documentation
data Entry
addCurrent :: (ControlIO m, MonadLogger m, MonadReader r m, Has MainView r, MonadError Text m, Alternative m) => [Text] -> m ()
Add current webpage to bookmarks with given tags
addCurrent' :: (ControlIO m, MonadLogger m, MonadReader r m, Has MainView r, MonadError Text m, Alternative m) => FilePath -> [Text] -> m ()
Like add
, but you can specify the bookmarks file path
:: (ControlIO m, MonadLogger m, MonadError Text m, Alternative m) | |
=> FilePath | Bookmarks file |
-> Entry | Custom bookmark entry |
-> m () |
Add a custom entry to bookmarks
select :: (ControlIO m, MonadError Text m) => m URI
Open a dmenu with all (sorted alphabetically) bookmarks entries, and return the user's selection, if any.
select' :: (ControlIO m, MonadError Text m) => FilePath -> [Text] -> m URI
Like select
, but you can specify the bookmarks file path
selectByTag :: (ControlIO m, MonadLogger m, MonadError Text m) => m [URI]
Open a dmenu with all (sorted alphabetically) bookmarks tags, and return the user's selection, if any.
deleteByTag :: (ControlIO m, MonadLogger m, MonadError Text m) => m ()
Remove all bookmarks entries matching the given tag.