Safe Haskell | Safe-Infered |
---|
- data Entry = Entry {}
- add :: PortableFilePath -> [String] -> K ()
- addCustom :: PortableFilePath -> Entry -> IO Bool
- select :: PortableFilePath -> [String] -> IO (Maybe URI)
- selectTag :: PortableFilePath -> [String] -> IO (Maybe [URI])
- deleteWithTag :: PortableFilePath -> [String] -> IO ()
Documentation
:: PortableFilePath | Bookmarks' database file |
-> Entry | New bookmarks entry |
-> IO Bool |
Add a custom entry to bookmarks
:: 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.
:: 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.
:: 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.