Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Commit

Permalink
Prepare for release v4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jarun committed Jul 27, 2020
1 parent 7716e79 commit a09481c
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 29 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG
@@ -1,3 +1,19 @@
googler 4.2
2020-07-28

- support GUI platform browsers on WSL
- support Wayland native copier `wl-copy`
- program options `--ipv4`, `--ipv6`; ipv4 preferred by default
- deduplicate results
- fix sitelinks parsing
- combine consecutive whitespaces
- fix extraction of matched keywords
- fix match highlighting
- no additional blank line for empty abstracts
- undocumented debug option `--parse` to parse dumped HTML

-------------------------------------------------------------------------------

googler 4.1
2020-04-30

Expand Down
36 changes: 17 additions & 19 deletions README.md
Expand Up @@ -229,7 +229,7 @@ To remove `googler` and associated docs, run

To install the latest stable version, run

$ sudo curl -o /usr/local/bin/googler https://raw.githubusercontent.com/jarun/googler/v4.1/googler && sudo chmod +x /usr/local/bin/googler
$ sudo curl -o /usr/local/bin/googler https://raw.githubusercontent.com/jarun/googler/v4.2/googler && sudo chmod +x /usr/local/bin/googler

You could then let googler upgrade itself by running

Expand All @@ -252,11 +252,10 @@ Search keyword and option completion scripts for Bash, Fish and Zsh can be found
#### Cmdline options

```
usage: googler [-h] [-s N] [-n N] [-N] [-V] [-c TLD] [-l LANG] [-x]
[--colorize [{auto,always,never}]] [-C] [--colors COLORS] [-j]
[-t dN] [--from FROM] [--to TO] [-w SITE] [--unfilter]
[-p PROXY] [--noua] [--notweak] [--json] [--url-handler UTIL]
[--show-browser-logs] [--np] [-u] [--include-git] [-v] [-d]
usage: googler [-h] [-s N] [-n N] [-N] [-V] [-c TLD] [-l LANG] [-x] [--colorize [{auto,always,never}]]
[-C] [--colors COLORS] [-j] [-t dN] [--from FROM] [--to TO] [-w SITE] [--unfilter]
[-p PROXY] [--notweak] [--json] [--url-handler UTIL] [--show-browser-logs] [--np] [-4]
[-6] [-u] [--include-git] [-v] [-d]
[KEYWORD [KEYWORD ...]]
Google from the command-line.
Expand All @@ -270,36 +269,35 @@ optional arguments:
-n N, --count N show N results (default 10)
-N, --news show results from news section
-V, --videos show results from videos section
-c TLD, --tld TLD country-specific search with top-level domain .TLD,
e.g., 'in' for India
-c TLD, --tld TLD country-specific search with top-level domain .TLD, e.g., 'in' for India
-l LANG, --lang LANG display in language LANG
-x, --exact disable automatic spelling correction
--colorize [{auto,always,never}]
whether to colorize output; defaults to 'auto', which
enables color when stdout is a tty device; using
--colorize without an argument is equivalent to
whether to colorize output; defaults to 'auto', which enables color when stdout
is a tty device; using --colorize without an argument is equivalent to
--colorize=always
-C, --nocolor equivalent to --colorize=never
--colors COLORS set output colors (see man page for details)
-j, --first, --lucky open the first result in web browser and exit
-t dN, --time dN time limit search [h5 (5 hrs), d5 (5 days), w5 (5
weeks), m5 (5 months), y5 (5 years)]
--from FROM starting date/month/year of date range; must use
American date format with slashes, e.g., 2/24/2020,
2/2020, 2020; can be used in conjunction with --to,
-t dN, --time dN time limit search [h5 (5 hrs), d5 (5 days), w5 (5 weeks), m5 (5 months), y5 (5
years)]
--from FROM starting date/month/year of date range; must use American date format with
slashes, e.g., 2/24/2020, 2/2020, 2020; can be used in conjunction with --to,
and overrides -t, --time
--to TO ending date/month/year of date range; see --from
-w SITE, --site SITE search a site using Google
--unfilter do not omit similar results
-p PROXY, --proxy PROXY
tunnel traffic through an HTTP proxy; PROXY is of the
form [http://][user:password@]proxyhost[:port]
--noua legacy option (no effect)
tunnel traffic through an HTTP proxy; PROXY is of the form
[http://][user:password@]proxyhost[:port]
--notweak disable TCP optimizations and forced TLS 1.2
--json output in JSON format; implies --noprompt
--url-handler UTIL custom script or cli utility to open results
--show-browser-logs do not suppress browser output (stdout and stderr)
--np, --noprompt search and exit, do not prompt
-4, --ipv4 only connect over IPv4 (by default, IPv4 is preferred but IPv6 is used as a
fallback)
-6, --ipv6 only connect over IPv6
-u, --upgrade perform in-place self-upgrade
--include-git when used with --upgrade, get latest git master
-v, --version show program's version number and exit
Expand Down
2 changes: 1 addition & 1 deletion googler
Expand Up @@ -89,7 +89,7 @@ except ValueError:

# Constants

_VERSION_ = '4.1'
_VERSION_ = '4.2'

COLORMAP = {k: '\x1b[%sm' % v for k, v in {
'a': '30', 'b': '31', 'c': '32', 'd': '33',
Expand Down
2 changes: 1 addition & 1 deletion googler.1
@@ -1,4 +1,4 @@
.TH "GOOGLER" "1" "30 Apr 2020" "Version 4.1" "User Commands"
.TH "GOOGLER" "1" "28 Jul 2020" "Version 4.2" "User Commands"
.SH NAME
googler \- Google from the command-line
.SH SYNOPSIS
Expand Down
15 changes: 7 additions & 8 deletions packagecore.yaml
Expand Up @@ -12,7 +12,6 @@ packages:
- make
deps:
- python
container: "archlinux/base"
centos7.5:
builddeps:
- make
Expand All @@ -36,37 +35,37 @@ packages:
commands:
precompile:
- dnf install python3
debian8:
debian9:
builddeps:
- make
deps:
- python3
debian9:
debian10:
builddeps:
- make
deps:
- python3
debian10:
fedora31:
builddeps:
- make
deps:
- python3
fedora30:
fedora32:
builddeps:
- make
deps:
- python3
fedora31:
opensuse15.1:
builddeps:
- make
deps:
- python3
opensuse15.1:
opensuse15.2:
builddeps:
- make
deps:
- python3
ubuntu14.04:
opensuse.tumbleweed:
builddeps:
- make
deps:
Expand Down

0 comments on commit a09481c

Please sign in to comment.