Commit Graph

228 Commits

Author SHA1 Message Date
Arun Prakash Jana
730b80f738
Fix #172: Get text of <DD> tag only, skip children 2017-07-18 23:11:46 +05:30
Arun Prakash Jana
45ab8034cd
Ignore spurious tags.
Please refer to #172. The spurious '<a></a>' tag leads to a crash; with or
without any text within.
2017-07-18 23:00:37 +05:30
rachmadani haryono
115c9651f8 Feature/test non generic url (#173)
* new: test: non generic url check method

* fix: test: test parameter

* chg: test: edit apt url

* fix: test: apt parameter

* chg: dev: allow `apt:` prefix

* new: test: `place:` url

* chg: doc: `apt:` prefix
2017-07-18 20:05:08 +05:30
Arun Prakash Jana
16cad432d7
Ignore some non-generic URLs.
URLs starting with `place:`, `file://` and `apt://` are ignored during import.
2017-07-18 10:50:27 +05:30
Arun Prakash Jana
d2037765d0
Fix #171: undocumented option '--db' 2017-07-16 15:08:01 +05:30
Arun Prakash Jana
e4cfb4b0f8
Prepare for release v3.1 2017-07-10 22:16:30 +05:30
Arun Prakash Jana
851711a78e
Add search args to history 2017-06-16 19:59:47 +05:30
Arun Prakash Jana
6abfea2e33
Support XDG_DATA_HOME, HOME to store DB file on all platforms 2017-05-29 01:09:33 +05:30
Arun Prakash Jana
7b31c2c423 Add issue template 2017-05-22 12:39:14 +05:30
Arun Prakash Jana
c23924fd07
Drop stdin.readlines(), treat as a file 2017-05-06 03:24:28 +05:30
Bryan Gilbert
818d015b3b add aditional format option to print url, title, and tag (#157) 2017-05-04 01:03:45 +05:30
Arun Prakash Jana
fe2d4653c1
Support browsing at prompt 2017-05-01 22:05:25 +05:30
Arun Prakash Jana
2c8022902b Handle index within browse_by_index() 2017-05-01 20:55:21 +05:30
Arun Prakash Jana
126e2cb45d
Fix typo 2017-04-28 08:22:08 +05:30
Cthulhux
44760fe035 Changed the Buku path on Windows to what other people think is right (#153) 2017-04-27 01:25:51 +05:30
Arun Prakash Jana
abac8d016b
Handle -ve indices in print_rec 2017-04-26 19:56:49 +05:30
Arun Prakash Jana
a1e6df2edb
Index should be >= 0 to browse 2017-04-26 18:42:15 +05:30
Arun Prakash Jana
dd06f2acf6
Prepare for v3.0 2017-04-26 10:27:00 +05:30
rachmadani haryono
63a5883d58
fix: test: change test (#149)
* fix: test: change priority on if-else branch

* fix: test: remove broken merged test code

* new: test: add win32 platform test for browser func

* chg: test: add noqa on print_single_rec

* new: test: test edit_update_rec with invalid input
2017-04-19 09:33:14 +05:30
Arun Prakash Jana
b69007e9a6
Show title in headline, url below
If no title, use the string "Untitled".
2017-04-19 09:33:07 +05:30
Arun Prakash Jana
07d472a0f0
not str == not len(str) 2017-04-08 23:15:15 +05:30
Arun Prakash Jana
da7ff951d0
Change in colors 2017-04-08 22:26:00 +05:30
Arun Prakash Jana
d4f59e939b
Improve looping 2017-04-08 19:14:02 +05:30
Arun Prakash Jana
d8f081cd4d
Use DELIM 2017-04-07 20:43:24 +05:30
Arun Prakash Jana
b9fbed2cab
Support print records at prompt 2017-04-07 02:03:10 +05:30
Arun Prakash Jana
706f234989
Support append/overwrite/delete tags from prompt 2017-04-07 01:27:36 +05:30
Arun Prakash Jana
bfdfb0604b
Show title in bold in color mode. 2017-04-06 08:51:05 +05:30
Arun Prakash Jana
42a8375ac7
Fix lint. 2017-04-06 08:44:44 +05:30
Arun Prakash Jana
f1a5cd4b88
Import folder names in lowercase. Document. 2017-04-06 08:28:12 +05:30
Muhammad
c48be129ee Added option to use folders names as tags when importing (#146) 2017-04-06 06:18:55 +05:30
Cthulhux
0923fa0d7f Threading for webbrowser on Win32 (partially fixes #142 for good). (#145)
Tested on Vivaldi (Chrome-based), qutebrowser (PyWebKit-based), Pale Moon (Firefox fork) and Firefox Developer Edition. It works as intended *if* the current default browser (or whatever Buku thinks the default browser is) is actively running. Depending on the browser, it still only opens everything in one tab if it is *not* running yet. But who closes his browser anyway? :-)
2017-04-04 01:14:02 +05:30
Cthulhux
3297499fe4 Better Windows support: Finding the user profile directory even on Win32 (#144)
* Better Windows support: Finding the user profile directory even on Win32

* Better Windows support: Finding the user profile directory even on Win32
2017-04-03 01:58:26 +05:30
Arun Prakash Jana
a1c1092987
Fix #142: Firefox opening multiple windows
Try to open new tab and not window.
Fix test case fail.
2017-04-02 22:49:52 +05:30
Arun Prakash Jana
84694f95ce
Add a note and message on waiting on input from stdin 2017-03-31 22:45:24 +05:30
Arun Prakash Jana
4153298a42 Homogeneous handling of ranges 2017-03-19 18:29:23 +05:30
Arun Prakash Jana
75109cec3e
Fix range handing in delete_rec() and print_rec()
1. Handle ranges within API rather than in caller
2. Rename print_record() to print_single_rec()
2017-03-19 12:39:44 +05:30
Arun Prakash Jana
ec8259d5a5
Support tail-like behaviour with --print 2017-03-19 00:45:26 +05:30
Arun Prakash Jana
fc5ee94b86 Update, reorder, align help and examples. 2017-03-17 20:48:11 +05:30
Arun Prakash Jana
7fae7b47b7 Add short option to regex and tag search 2017-03-17 08:10:55 +05:30
Arun Prakash Jana
eeb7e99c16
Disable -r for --replace 2017-03-17 00:07:51 +05:30
Arun Prakash Jana
46e2e4a704
Disable -t for --title 2017-03-16 23:45:37 +05:30
Arun Prakash Jana
ce66158164
Editor support at subprompt 2017-03-12 20:11:53 +05:30
Arun Prakash Jana
842bce701c
Modularize edit and update 2017-03-12 14:55:01 +05:30
Arun Prakash Jana
2650bd74e9
Add API get_max_id(), -p -1 shows max index 2017-03-06 02:26:40 +05:30
Arun Prakash Jana
a532a78a1f Reformat multi-line strings 2017-03-06 01:32:24 +05:30
Arun Prakash Jana
ba5a81084a
Substitute append(), extend() with concatenation 2017-03-05 23:49:58 +05:30
Arun Prakash Jana
84df17ee38 Various optimizations
1. Prefer string concatenation to substitution
2. Fix issue: tagset append or delete shows extra print in update_rec()
3. Introduce delim_wrap()
2017-03-05 23:11:49 +05:30
Arun Prakash Jana
b07d0ab8f5 Use colourful log levels in colour mode 2017-03-05 04:05:07 +05:30
Arun Prakash Jana
e02333f715
Remove redundant declarations 2017-03-04 22:48:56 +05:30
Arun Prakash Jana
6348c2d4fa
Request HTTP HEAD for immutable records 2017-03-04 21:03:59 +05:30
Arun Prakash Jana
077ea12cd1
Support --immutable with -w for update 2017-03-04 08:42:24 +05:30
Arun Prakash Jana
3eca175604
Use correct endpoint to fetch the tag name of the latest release. 2017-03-02 10:06:57 +05:30
Arun Prakash Jana
013849d232
Modify return values from add_rec() 2017-02-25 11:25:18 +05:30
Arun Prakash Jana
325aab9c78
Prepare for release v2.9. 2017-02-20 19:35:55 +05:30
Arun Prakash Jana
64799aff05 Rename APIs
New APIs: get_rec_all(), delete_rec_all()
Rename API open_in_browser() to browse()
Rename help APIs.
Update User Agent to Firefox 51.
Other minor changes
2017-02-19 11:30:10 +05:30
Kishore Narendran
e5395b5528 BukuDB: Adding New Functions (#120)
* Adds functions to BukuDB - for getting all records and to delete all records

* Refactors get all records function name

* Some minor refactors
2017-02-19 08:13:58 +05:30
Arun Prakash Jana
d26e2f5571
Either encrypt or decrypt supported in one shot.
Fix typo.
2017-02-16 21:22:19 +05:30
Arun Prakash Jana
883cbf8ec2 Add check for --add with --url, update help 2017-02-11 19:40:42 +05:30
Arun Prakash Jana
2e0ce3e143 Auto-detect markdown with export and import
The file extension '.md' is used to detect a markdown
file. With this, option --markdown is removed.
2017-02-10 22:14:00 +05:30
Arun Prakash Jana
8cc17a1833
Shorten --upstream to -V. 2017-02-10 20:34:24 +05:30
Arun Prakash Jana
df78a06f6f
Shorten --markdown to --md. 2017-02-10 19:36:39 +05:30
Arun Prakash Jana
9e0dfcbdce
Shorten --noprompt to --np. 2017-02-10 19:29:02 +05:30
Arun Prakash Jana
b7207109bc
Shorten --nocolor to --nc. 2017-02-10 19:25:05 +05:30
Arun Prakash Jana
bd4b85ad32 Support index with -w. 2017-02-09 21:55:07 +05:30
Eric
bbf7428818 Disable sig handler when reading input (#117)
* Disable sig handler when reading input

* Rename read_input to read_in

* Update prompt messages
2017-02-07 15:37:01 +05:30
Arun Prakash Jana
74e63357a2 Fix #115: Support editor args with Buku. 2017-02-05 16:47:16 +05:30
Arun Prakash Jana
bb4854126c
Open all search results in browser immediately. 2017-02-05 09:10:38 +05:30
Arun Prakash Jana
c7b4d710bb Remove redundant Exception handlers. 2017-02-05 01:18:04 +05:30
Arun Prakash Jana
961fde3457 Toppings on editor support. 2017-02-05 00:31:51 +05:30
Eric Ng
0e0f4f1b03 An editor mode for adding and updating new links 2017-02-04 13:54:00 +05:30
Arun Prakash Jana
8508135605
Optimize tag append,delete from tagset 2017-01-30 01:25:04 +05:30
Arun Prakash Jana
2df2ce2b6d LIMIT number of DB query results, if applicable 2017-01-30 01:02:48 +05:30
Arun Prakash Jana
ce3a7aa377 Remove length check for empty lists
Fix a bug in get_all_tags() where tuple was not returned.
Fix Travis error.
Convert some prints to tacit
2017-01-29 23:33:53 +05:30
Arun Prakash Jana
bb8e683f93
Support positional arguments as search keywords
1. All search options are now boolean
2. -s is the default search option
2017-01-29 19:19:47 +05:30
Arun Prakash Jana
6fb23c9ae8
Remove redundant punctuation marks. 2017-01-11 12:17:47 +05:30
Arun Prakash Jana
5a88d1ea0e
Prepare for release v2.8. 2017-01-11 09:25:45 +05:30
Arun Prakash Jana
bc65e17782
Encode URL before sending to tny.im. 2017-01-11 05:23:24 +05:30
Arun Prakash Jana
16f4ad2b38
Help goes to sys.stdout by default. 2017-01-10 21:57:20 +05:30
Arun Prakash Jana
bafdfc20e8
Move -v to general section. 2017-01-10 06:26:24 +05:30
Arun Prakash Jana
2f6ab26f8c
Maintain search_opted flag. 2017-01-09 22:41:36 +05:30
Arun Prakash Jana
64eafeadc4
Support sesarch and update. 2017-01-09 09:52:22 +05:30
Arun Prakash Jana
fe051f7ac8 Update latest help. 2017-01-04 23:07:15 +05:30
Arun Prakash Jana
bb52649c46 Windows cmd.exe and PowerShell fails to print ©.
Force print to sys.stderr on Windows.
2017-01-04 19:12:02 +05:30
Arun Prakash Jana
bdf71addaf
Add option --nocolor, reformat completion scripts. 2017-01-04 06:13:47 +05:30
Arun Prakash Jana
db45622207 Remove redundant initialization, reorder imports. 2017-01-03 22:21:14 +05:30
Arun Prakash Jana
302ddc98d2 Update Copyright year to 2017. 2017-01-02 00:00:03 +05:30
Arun Prakash Jana
7c8eab98e0
Reorder classes, organize comments. 2016-12-31 22:20:18 +05:30
Arun Prakash Jana
f30738090a Remove redundant custom option handlers. 2016-12-31 11:01:50 +05:30
Arun Prakash Jana
4ab1fade7e
Support opening multiple bookmarks. 2016-12-31 00:29:57 +05:30
Arun Prakash Jana
c86fb880f9
Move crypto globals to class scope. 2016-12-30 23:25:26 +05:30
Arun Prakash Jana
94482649c6 Fix test cases. 2016-12-27 22:58:28 +05:30
Arun Prakash Jana
84834a2355 Use _rec instead of _bm. 2016-12-27 21:18:55 +05:30
Arun Prakash Jana
9c7768e84d
Do not commit if no records deleted. 2016-12-27 09:10:08 +05:30
Arun Prakash Jana
aef76e94c8
Remove redundant join/split, show indices on failure. 2016-12-27 08:10:08 +05:30
Arun Prakash Jana
f1fd227aff
Use single quotes. 2016-12-25 19:52:28 +05:30
Arun Prakash Jana
315f3595d8
Check if url is None in update_bm(). 2016-12-21 20:58:28 +05:30
Arun Prakash Jana
91479f7474
Add flag to DB by default. 2016-12-20 23:34:43 +05:30
Arun Prakash Jana
ec65ba9295
Immutable is not a class variable. 2016-12-20 22:37:14 +05:30
Arun Prakash Jana
ba474bb51e
Simpler blank tag handling. 2016-12-20 22:01:04 +05:30
Arun Prakash Jana
1a9ad1c1ca
Add option to show version. 2016-12-18 19:55:35 +05:30