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

Safe HaskellSafe-Infered

Hbro.Bookmarks

Synopsis

Documentation

data Entry Source

Constructors

Entry 

Fields

mURI :: URI
 
mTags :: [String]
 

Instances

add :: PortableFilePath -> [String] -> K ()Source

Add current webpage to bookmarks with given tags

addCustomSource

Arguments

:: PortableFilePath

Bookmarks' database file

-> Entry

New bookmarks entry

-> IO Bool 

Add a custom entry to bookmarks

selectSource

Arguments

:: PortableFilePath

Bookmarks' database file

-> [String]

dmenu's commandline options

-> IO (Maybe URI) 

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

selectTagSource

Arguments

:: PortableFilePath

Bookmarks' database file

-> [String]

dmenu's commandline options

-> IO (Maybe [URI]) 

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

deleteWithTagSource

Arguments

:: PortableFilePath

Bookmarks' database file

-> [String]

dmenu's commandline options

-> IO () 

popOldest :: PortableFilePath -> String -> IO (Maybe URI) popOldest file tags = do

Return a random Bookmark entry with a given tag, while removing it from bookmarks. popRandom :: PortableFilePath -> String -> IO (Maybe URI) popRandom file tags = do file' <- resolve file result <- try . readFile $ file' file'' - either (\e - errorHandler file' e >> return Nothing) (x -> return $ Just x) result

Remove all bookmarks entries matching the given tag.