hbro-contrib-1.3.0.0: Third-party extensions to hbro.

Safe HaskellNone
LanguageHaskell98

Hbro.Bookmarks

Description

Simple bookmarks system: bookmarks are a list of tagged URIs.

This module is designed to be imported as qualified.

Synopsis

Documentation

data Entry

Constructors

Entry 

Fields

_uri :: URI
 
_tags :: Set Text
 

Instances

Eq Entry 
Ord Entry 
Describable Entry 
ToJSON Entry 
FromJSON 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

add

Arguments

:: (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.