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

Safe HaskellNone

Hbro.Bookmarks

Description

Designed to be imported as qualified.

Synopsis

Documentation

data Entry Source

Constructors

Entry 

Fields

mURI :: URI
 
mTags :: [String]
 

Instances

add :: (Functor m, MonadBase IO m, GUIReader n m, MonadError HError m) => FilePath -> [String] -> m ()Source

Add current webpage to bookmarks with given tags

addCustomSource

Arguments

:: (MonadBase IO m, MonadError HError m) 
=> FilePath

Bookmarks' database file

-> Entry

New bookmarks entry

-> m () 

Add a custom entry to bookmarks

selectSource

Arguments

:: (Functor m, MonadBase IO m, MonadError HError m) 
=> FilePath

Bookmarks' database file

-> [String]

dmenu's commandline options

-> m URI 

Open a dmenu with all (sorted alphabetically) bookmarks entries, and return the user's selection, if any.

selectTagSource

Arguments

:: (Functor m, MonadBase IO m, MonadError HError m) 
=> FilePath

Bookmarks' database file

-> [String]

dmenu's commandline options

-> m [URI] 

Open a dmenu with all (sorted alphabetically) bookmarks tags, and return the user's selection, if any.

deleteWithTagSource

Arguments

:: (Functor m, MonadBase IO m, MonadError HError m) 
=> FilePath

Bookmarks' database file

-> [String]

dmenu's commandline options

-> m () 

Remove all bookmarks entries matching the given tag.