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 Buku 2.7
2016-11-30 2016-11-30

View File

@ -140,13 +140,13 @@ GENERAL OPTIONS:
refresh titles of bookmarks at indices, refresh titles of bookmarks at indices,
if no edit options are specified if no edit options are specified
update search results, when used with update search results, when used with
search, if no arguments search options, if no arguments
-d, --delete [...] delete bookmarks. Valid inputs: either -d, --delete [...] delete bookmarks. Valid inputs: either
a hyphenated single range (100-200), a hyphenated single range (100-200),
OR space-separated indices (100 15 200) OR space-separated indices (100 15 200)
delete all bookmarks, if no arguments delete all bookmarks, if no arguments
delete search results, when used with delete search results, when used with
search, if no arguments search options, if no arguments
-v, --version show program version and exit -v, --version show program version and exit
-h, --help show this information 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 .SH NAME
buku \- Powerful command-line bookmark manager. Your mini web! buku \- Powerful command-line bookmark manager. Your mini web!
.SH SYNOPSIS .SH SYNOPSIS

18
buku.py
View File

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