Commit Graph

335 Commits

Author SHA1 Message Date
Arun Prakash Jana
d7b0f2483b
Retry with truncated URL on error 500 in HTTP response. 2016-04-09 19:13:12 +05:30
Arun Prakash Jana
5a1b9d17c4
Catchier exceptions, minor optimizations. 2016-04-09 18:41:46 +05:30
Arun Prakash Jana
e5ca44e251
Request gzip compressed data in HTTP(S) fetch. 2016-04-09 17:25:18 +05:30
Arun Prakash Jana
4c25e0b1c0
Handle URLs passed with %xx escape.
E.g.: "https://linuxreference.wordpress.com/2010/12/28/25-even-more-%E2%80%93-sick-linux-commands/"
2016-04-09 14:52:31 +05:30
Arun Prakash Jana
b499daade4
Print exception messages. 2016-04-09 14:06:58 +05:30
Arun Prakash Jana
3cfca94031
Easily detect origin of Exception. 2016-04-09 13:25:59 +05:30
Arun Prakash Jana
fda91659a9
Update month, minor info print change. 2016-04-08 19:45:47 +05:30
Dmitry Marakasov
477be87f7c Bump version 2016-04-08 15:48:05 +03:00
Dmitry Marakasov
fbf5006978 Automatically move database from legacy location if it exists 2016-04-08 15:48:02 +03:00
Dmitry Marakasov
20b3b52629 Fix database path
- Don't use ~/.cache, it's intended to store non-essential data
  files and may be purged at any time
- Instead, follow XDG and use $XDG_DATA_HOME or ~/.local/share/buku
- Fallback to current directory if HOME is not defined (Windows?)
2016-04-08 15:47:30 +03:00
Arun Prakash Jana
e835ddf23f Update buku 2016-04-06 10:25:25 +05:30
Arun Prakash Jana
c4541227b4 Update buku 2016-04-06 10:09:56 +05:30
Arun Prakash Jana
fb6ec10648 More commits on functions.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-04-05 18:25:29 +05:30
Arun Prakash Jana
ccd7c8b035 Change the order of return values from getPageResp.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-04-05 18:10:05 +05:30
Arun Prakash Jana
de6f86c7f9 Function comments 2016-04-05 16:55:40 +05:30
Arun Prakash Jana
7ee0c12a5f Update buku 2016-04-04 15:20:23 +05:30
Arun Prakash Jana
e1722bd9dc Extra conversion removed.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-04-03 21:28:47 +05:30
Arun Prakash Jana
c7b5863b04 Function to print catchy errors and warnings.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-04-01 20:26:00 +05:30
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
lmessier
29233844d4 Update documentation 2016-03-23 13:23:35 +01:00
lmessier
3d69532e2a Return if nothing matches the search query on json and -f is set 2016-03-23 13:13:56 +01:00
lmessier
f76119ea17 Return early if IndexError exception is caught 2016-03-23 13:10:26 +01:00
lmessier
f3fa5a3a29 Maintain 3 line gap between functions 2016-03-23 13:10:08 +01:00
lmessier
84483fed3a Print search data as json if option is set 2016-03-23 00:33:13 +01:00
lmessier
d7bbab6d5d Print data as json if option is set in printdb 2016-03-23 00:32:37 +01:00
lmessier
c1ae9254c1 Import jsonOutput option value 2016-03-23 00:31:17 +01:00
lmessier
f26745714b Create a function to output json 2016-03-23 00:30:51 +01:00
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
lmessier
ee16a4cbc3 Handle a new -j command line flag 2016-03-21 13:38:07 +01:00
lmessier
76706944c4 Import json module 2016-03-21 13:37:28 +01:00
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
Arun Prakash Jana
604ae14e6e Update title manually. (Issue #6)
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-03-03 23:19:43 +05:30
Arun Prakash Jana
f1c7ff1f38 Remove extra info.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2016-02-28 19:39:21 +05:30
Arun Prakash Jana
6c760d5bff Bumped version and date.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2015-12-23 00:07:50 +05:30
Arun Prakash Jana
0e867441ef More clarity on -t option.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2015-12-23 00:03:22 +05:30
Arun Prakash Jana
faf1fc2410 Allow user to specify number of iterations to generate key.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2015-12-22 23:40:24 +05:30
Arun Prakash Jana
49342bfdcb Stronger encryption: 256-bit salt, multi-hash key.
Ref: https://www.reddit.com/r/linux/comments/3xk0lq/markit_is_now_buku_adds_aes256_encryption_support/cy5eobq

Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2015-12-21 00:30:34 +05:30
Arun Prakash Jana
a674998855 Renamed all files.
Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
2015-12-20 01:48:46 +05:30