Prepare for release v2.8.

This commit is contained in:
Arun Prakash Jana 2017-01-11 09:25:45 +05:30
parent bc65e17782
commit 5a88d1ea0e
No known key found for this signature in database
GPG Key ID: A75979F35C080412
4 changed files with 30 additions and 12 deletions

View File

@ -1,3 +1,21 @@
Buku 2.8
2017-01-11
Modifications
- Multithreaded full DB refresh with delayed writes
- Customize number of threads for full DB refresh (default 4)
- Support search and update search results in a go
- Support shortened URL expansion
- Support multiple bookmarks with `--open`
- Support `--nocolor` (for scripting, Windows users)
- Support https_proxy with `--upstream` and `--shorten`
- Remove trailing `/` from search tokens (like Google search)
- Support `--version` to show program version
- Fixed #109: Missing + when shortening URL
- Performance optimizations, few module dependency removals
-------------------------------------------------------------------------------
Buku 2.7
2016-11-30

View File

@ -140,13 +140,13 @@ GENERAL OPTIONS:
refresh titles of bookmarks at indices,
if no edit options are specified
update search results, when used with
search, if no arguments
search options, if no arguments
-d, --delete [...] delete bookmarks. Valid inputs: either
a hyphenated single range (100-200),
OR space-separated indices (100 15 200)
delete all bookmarks, if no arguments
delete search results, when used with
search, if no arguments
search options, if no arguments
-v, --version show program version and exit
-h, --help show this information and exit

2
buku.1
View File

@ -1,4 +1,4 @@
.TH "BUKU" "1" "Nov 2016" "Version 2.7" "User Commands"
.TH "BUKU" "1" "Jan 2017" "Version 2.8" "User Commands"
.SH NAME
buku \- Powerful command-line bookmark manager. Your mini web!
.SH SYNOPSIS

18
buku.py
View File

@ -37,7 +37,7 @@ import urllib3
from urllib3.util import parse_url, make_headers
import webbrowser
__version__ = '2.7'
__version__ = '2.8'
__author__ = 'Arun Prakash Jana <engineerarun@gmail.com>'
__license__ = 'GPLv3'
@ -2159,6 +2159,12 @@ def check_upstream_release():
print('Latest upstream release is %s' % latest)
def regexp(expr, item):
'''Perform a regular expression search'''
return re.search(expr, item, re.IGNORECASE) is not None
def sigint_handler(signum, frame):
'''Custom SIGINT handler'''
@ -2173,12 +2179,6 @@ def sigint_handler(signum, frame):
signal.signal(signal.SIGINT, sigint_handler)
def regexp(expr, item):
'''Perform a regular expression search'''
return re.search(expr, item, re.IGNORECASE) is not None
# Handle piped input
def piped_input(argv, pipeargs=None):
if not sys.stdin.isatty():
@ -2228,13 +2228,13 @@ def main():
refresh titles of bookmarks at indices,
if no edit options are specified
update search results, when used with
search, if no arguments
search options, if no arguments
-d, --delete [...] delete bookmarks. Valid inputs: either
a hyphenated single range (100-200),
OR space-separated indices (100 15 200)
delete all bookmarks, if no arguments
delete search results, when used with
search, if no arguments
search options, if no arguments
-v, --version show program version and exit
-h, --help show this information and exit''')
addarg = general_grp.add_argument