57 Commits

Author SHA1 Message Date
Arun Prakash Jana
9a6e6296bd Show version in debug logs.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-31 00:58:37 +05:30
Arun Prakash Jana
49f788105a Handle piped input.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-26 21:29:07 +05:30
Arun Prakash Jana
ada4b35f73 Show correct redirected URL.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-26 11:14:26 +05:30
Arun Prakash Jana
5055833a69 Help related changes.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-26 00:08:23 +05:30
Arun Prakash Jana
c4da585c34 Help section with common options at top.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 23:53:26 +05:30
Arun Prakash Jana
5dd55724b2 More elaborate description.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 22:09:45 +05:30
Arun Prakash Jana
b366bc4e25 Change program description.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 22:06:29 +05:30
Arun Prakash Jana
c18fe5635f The purpose of insert is gone with auto-compaction.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 19:42:49 +05:30
Arun Prakash Jana
7e9fc59491 Remove obvious line from help.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 15:02:51 +05:30
Arun Prakash Jana
8fb1123831 Reformat help and man.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 14:59:19 +05:30
Arun Prakash Jana
e8835504ff Reformat, add notifications and errors.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 13:32:43 +05:30
Arun Prakash Jana
b5f066ba43 Show all bookmarks with empty titles or no tags.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 13:22:52 +05:30
Arun Prakash Jana
eae1237ea7 Catchier error messages.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 12:04:32 +05:30
Arun Prakash Jana
a56fa0381d Detect and break redirection loops.
Unquote text before connection check and GET request.

Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 11:47:20 +05:30
Arun Prakash Jana
ea02856bc1 Fix issues with fetching pages with %20.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 08:08:03 +05:30
Arun Prakash Jana
1c982ccd51 Show new record after add or update.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 02:18:36 +05:30
Arun Prakash Jana
3ea64f3a5f Better redirection handling.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 02:08:38 +05:30
Arun Prakash Jana
1ea332ba18 Handle multiple reirections. Show URL in BOLD.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 01:10:30 +05:30
Arun Prakash Jana
1a47576649 Reformat and optimize DB refresh.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 00:18:41 +05:30
Arun Prakash Jana
ca21ac579a Fix current full refresh feature.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-25 00:18:41 +05:30
Arun Prakash Jana
321c550f1a Better index boundary check for prompt.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-23 21:27:57 +05:30
Arun Prakash Jana
2708e70004 Reformat: distinct API to fetch page data.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-23 20:28:21 +05:30
Arun Prakash Jana
e832826118 Remove unnecessary code.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-23 02:08:35 +05:30
Arun Prakash Jana
1d99c4ccb3 Reformat: break out function to fetch URL.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-23 01:53:46 +05:30
Arun Prakash Jana
9f06983a6e More correct help.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-21 01:23:57 +05:30
Arun Prakash Jana
76e60c79e8 Initial informative message on encryption.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-20 14:25:08 +05:30
Arun Prakash Jana
c3dedf601e Error out if both encrypted and flat DB files exist.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-20 13:41:52 +05:30
Arun Prakash Jana
365bb2002c Report failure without hints.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-20 13:13:41 +05:30
Arun Prakash Jana
f9fc90776b Update help on auto DB compaction.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-20 11:29:06 +05:30
Arun Prakash Jana
b4b0c1e042 Compact the DB when removing a bookmark.
The record at the last index is moved to the removed index.

Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-20 11:12:06 +05:30
Arun Prakash Jana
366b493ca0 Confirm DB cleansing.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-20 09:48:13 +05:30
Arun Prakash Jana
a75a56cd5a More clarity on -u option.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-20 07:11:40 +05:30
Arun Prakash Jana
ad38461eee Comment update.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-19 23:38:18 +05:30
Arun Prakash Jana
ffe31cc17b Minor change for more clarity.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-19 23:31:45 +05:30
Arun Prakash Jana
a4b27228ac Bump version.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-19 22:51:21 +05:30
Arun Prakash Jana
9e1e0b34d7 Return if old and new tags are same.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-19 22:49:58 +05:30
Arun Prakash Jana
017f7b82cd Do not insert new tag if already present.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-19 22:36:44 +05:30
Arun Prakash Jana
bcdafd6cc1 Modify or delete tags.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-19 21:25:13 +05:30
Arun Prakash Jana
ab17bd0127 Merge branch 'master' of https://github.com/jarun/buku 2016-03-16 23:36:39 +05:30
Arun Prakash Jana
515fbe56fd Show unique tags sorted alphabetically.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-16 23:33:15 +05:30
Arun Prakash Jana
c54a636554 Don't add single comma as tag.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-16 22:05:34 +05:30
Arun Prakash Jana
806f845beb Strip extra commas from tags.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-16 21:19:35 +05:30
Arun Prakash Jana
7179b8bd05 Graceful SIGINT handler.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-16 20:40:55 +05:30
Arun Prakash Jana
0d20660bbf Bump version.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-15 19:38:54 +05:30
Arun Prakash Jana
22e39956f5 A more flexible shebang.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-15 19:21:06 +05:30
Arun Prakash Jana
5a3b5daa01 Handle Ctrl-d, the *nix way to quit.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-10 18:03:54 +05:30
Arun Prakash Jana
f67ac812a3 Reformatted to remove extra checks.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-07 19:07:33 +05:30
Arun Prakash Jana
e900fce73b Fix comment spelling.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-07 18:44:36 +05:30
Arun Prakash Jana
1f1a9e44d0 Fix reirection URL before fetch.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-04 20:15:49 +05:30
Arun Prakash Jana
72b59e8f91 Help and documentation on option '-m'.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-03 23:48:04 +05:30