Commit graph

11 commits

Author SHA1 Message Date
e3d4594eb7 Add/improve some documentation comments
Since CHICKEN scheme doesn't do docstrings I'm just using comments.
2012-12-28 22:03:55 +01:00
e72e942eca Add GPLv3 2012-12-28 20:45:32 +01:00
5535308fff Restructure
Put all source files in `src/' and add the `conkeror/' directory from
the old project.
2012-12-28 20:24:20 +01:00
57f06ec8c9 Remove db as a global variable
There's no need for it to be a global variable.
2012-12-28 01:46:15 +01:00
f71c70ca7b Define a main function
It looks somewhat cleaner.
2012-12-28 01:42:21 +01:00
59af3a13f9 Don't bail when a tag doesn't exist yet
Add the tag to the database if `first-result' returns nothing.
2012-12-28 01:39:16 +01:00
908bbc3cfb Use a transaction when adding new bookmarks
During testing it was discovered that the `first-result' procedure
throws an exception, which left the database in a somewhat
inconsistent state, the bookmark had been added, but (at least one of)
the tags weren't added.  This should make it all succeed or all fail.
2012-12-28 01:00:26 +01:00
0c24993384 Add README 2012-12-27 03:12:15 +01:00
10d453e5d7 Update linkwave
* Add parsing of command line arguments, if the first argument starts
  with "http://" assume it's a new bookmark and save it to the
  database.

* Add adding bookmarks to the database.

* linkwave.scm (string-no-null): Only try to remove the final null
  byte if the string is longer than 0 characters and only if the last
  character _is_ a null character.
2012-12-27 03:08:55 +01:00
1b6badfcce Guard against non-blob values of bookmark.date 2012-12-27 03:03:24 +01:00
77c7dbaa9a Initial commit 2012-12-24 01:27:14 +01:00