You are not logged in.

#1 2014-10-18 22:14:41

mgmillani
Member
Registered: 2014-04-14
Posts: 14

Boomange - An Universal Bookmarks Manager

Boomange is a tool that generates a HTML file which may then be used as bookmarks for any and every browser.

I decided to write this after using a minimalistic browser that didn't have decent bookmarks. The program is rather simple: it just creates a HTML file with a bunch of "<div>" each containing either a section or a link, forming a tree structure, and prepends a header and a footer to the result, allowing the user to use javascript and CSS as seen fit.

Boomange stores its configuration in one of these directories, stopping on the first solvable (it doesn't checks if the directory exists, but the variable):

  • $XDG_CONFIG_HOME/boomange

  • $HOME/.config/boomange

  • Haskell's "getAppUserDataDirectory boomange"

If the directory is empty, a sample configuration will be installed. Then the output file will be generated as described in the 'config' file.

The following script could be useful to edit existing bookmarks:

#!/bin/sh
scite "$XDG_DATA_HOME"/bookmarks/* "$XDG_CONFIG_HOME"/boomange/config
boomange

In my case, this opens every configuration file for boomange in a diferent tab using scite, incluiding those with the bookmarks themselves, and runs boomange after the user finished editing, thus generating a new html file.

This package may be found in AUR and Hackage

TODO list:

  • Allow multiple output files done in 0.1.2.1

  • Add some user-customized information to the divs (like 'class')

  • Make some simple way to add bookmarks besides editing the data files

EDIT: TODO list

Last edited by mgmillani (2014-10-23 16:06:47)

Offline

#2 2014-10-19 10:35:15

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: Boomange - An Universal Bookmarks Manager

This seems like a great little program. However, I can't get it to work. When I change the bookmarks file and then run boomange, the bookmarks.html file does not change. At all. Even if I change one of the titles in the example config.

Could this be related to the fact that I use GHC from the arch-haskell repo?

Offline

#3 2014-10-19 14:40:10

mgmillani
Member
Registered: 2014-04-14
Posts: 14

Re: Boomange - An Universal Bookmarks Manager

Fixed now.

I was improving the indentation style of the file but, since Haskell is sensitive to indentation, I ended up adding a bug where the program only did something useful on the first run.

Thanks!

Offline

#4 2014-10-19 15:27:23

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: Boomange - An Universal Bookmarks Manager

Works now. This will most likely make bookmark management a lot easier across computers. Thanks a lot.

EDIT: Spelling

Last edited by runical (2014-10-19 15:27:41)

Offline

#5 2014-10-23 16:04:55

mgmillani
Member
Registered: 2014-04-14
Posts: 14

Re: Boomange - An Universal Bookmarks Manager

Just added some documentation in the form of a man page, as well as command line options (see 'boomange --help').

I also added the possibility to use multiple configuration files (just specify multiple '--config <file>', should've added that to the manual by the way) and made the program a bit more verbose.

And in case anyone ever gets some error like:

boomange: error while loading shared libraries: libHSsimtreelo-0.1.0.2-ghc7.8.3.so: cannot open shared object file: No such file or directory

the reason is probably that there was an update to simtreelo, and the previous version was removed. Since boomange uses dynamic linkage by default, it will stop working. If you just reinstall the package it should work again.

I don't really know what would be the right way to deal with dynamic linkage in this case, so if anyone knows please do tell me. One possiblity might be changing '--enable-shared' to '--disable-shared' and '--enable-executable-dynamic' to '--disable-executable-dynamic', but I didn't really test it.

Offline

Board footer

Powered by FluxBB