Commit Graph

427 Commits

Author SHA1 Message Date
Thomas Buckley-Houston 7a76b3d9aa First basic implementation of configurable keys
Only 'next-tab' is currently supported.

You will need to run Browsh with `--debug` then press the key
combination and watch the logs for something like;

`TTY sending: /stdin,{"char":"\u001c","key":28,"mod":2}`

That is the result of having `pressed CTRL+\`. Then add something
like the following to your config file:
```toml
[tty.keys]
next-tab = ["\u001c", "28", "2"]
```

touches #52
2018-07-21 17:05:02 +08:00
Thomas Buckley-Houston 7c10bd230e Replace google.com with brow.sh as startup URL
closes #132
2018-07-21 13:56:15 +08:00
Thomas Buckley-Houston 023836b69e Attempt to return empty 200s for Kube probes 2018-07-21 13:34:45 +08:00
Thomas Buckley-Houston 582dddf101 Merge branch 'master' of github.com:browsh-org/browsh 2018-07-19 15:27:09 +08:00
Thomas Buckley-Houston 1b0d5f103f Provide Browsh version with git in Dockerfile
Version v1.4.6
2018-07-19 15:26:45 +08:00
Thomas Buckley-Houston 9073a2a1bf Update issue templates 2018-07-19 15:04:48 +08:00
Thomas Buckley-Houston 26416e267c Release: only delete `core` file if it exists 2018-07-19 14:49:27 +08:00
Thomas Buckley-Houston 949273a553 Remove "core" file in webpack dist/ during release
What is that file!!? It's only on Travis and its 201Mb!
2018-07-19 14:42:41 +08:00
Thomas Buckley-Houston 18099c0c86 List contents of webext/ during release script
Includes version bump to v1.4.3
2018-07-19 14:30:39 +08:00
Thomas Buckley-Houston 87aa7346b7 Bump version to trigger Mozilla release 2018-07-19 14:18:02 +08:00
Thomas Buckley-Houston a9425988af JS and Go formatting 2018-07-19 14:07:39 +08:00
Thomas Buckley-Houston 20c7cb607f Merge branch 'master' of github.com:browsh-org/browsh 2018-07-19 14:03:37 +08:00
Thomas Buckley-Houston 618f192ca5 Adds header/footer to plain text HTTP responses 2018-07-19 13:53:25 +08:00
Thomas Buckley-Houston 6f7af4f8bc Adds to call to donate on HTML page footers 2018-07-19 13:37:14 +08:00
Thomas Buckley-Houston 8851ded7ea Adds Browsh version to HTML output 2018-07-19 13:36:53 +08:00
Thomas Buckley-Houston 9318cbf282 Adds CLI arg to output version 2018-07-19 13:19:58 +08:00
Thomas Buckley-Houston e270dca8aa Refactor to keep Browsh version in Go 2018-07-19 13:14:59 +08:00
Thomas Buckley-Houston 976c811884 Don't use viper's FF path in `os.exec()`
Silly mistake. There's a few manipulations of `path` done before
calling `os.exec()`, so they need to passed on, not ignored!
2018-07-19 12:27:38 +08:00
msrahman07 dcc3cb0f1e Cohesion, fix structural error, improve word choice
"If all you have is a 3kbps connection tethered" --> "If you only have a 3kbps internet connection"
"But traditional text-based browsers..." --> "However, traditional text-based browsers"
"lack JS support and all other modern HTML5 goodness." --> "lack JS and all other modern HTML5 support."
"few more hours life" --> "few more hours of life"
2018-07-18 20:14:05 +07:00
Thomas Buckley-Houston 772694f412 Prettierierier 2018-07-18 20:39:18 +08:00
Thomas Buckley-Houston 5b246018ed Stub config in webext tests 2018-07-18 20:35:10 +08:00
Thomas Buckley-Houston 024d31e74d Version bump to v1.4.0 2018-07-18 19:57:41 +08:00
Thomas Buckley-Houston e99a79b5fc Disable UPX compression 2018-07-18 19:57:27 +08:00
Thomas Buckley-Houston ec36c9c570 Show removable call to donate in TTY 2018-07-18 19:52:22 +08:00
Thomas Buckley-Houston e2c5e5608b Ensure HTTP server tabs live no longer than 60s 2018-07-18 17:44:45 +08:00
Thomas Buckley-Houston 23702a2b4d Block user agents and domains using user config 2018-07-18 17:38:17 +08:00
Thomas Buckley-Houston 73c8bd94f3 Made all obvious variables user-configurable
There's a bit of refactoring in order for the webextension to deal with
the new order of initialisation now that config is sent by the Golang
client.

Closes #83
2018-07-18 15:55:35 +08:00
Thomas Buckley-Houston ef18913e3c First implementation of config file
Includes change of CLI args, many of been moved to the config file and
those that remain begin with `--` not `-` and may be worded differently.

Touches #37
2018-07-17 18:43:52 +08:00
Thomas Buckley-Houston e048fc8d6a Changed license to LGPLv2 2018-07-17 10:10:25 +08:00
Thomas Buckley-Houston 4b2ce6abbc Gofmt formatting 2018-07-17 10:10:08 +08:00
Thomas Buckley-Houston f05a21a339 Exclude windows files when running unit tests 2018-07-16 23:08:24 +08:00
Thomas Buckley-Houston 1017e8d000 Possible fix for windows path and crash issues
Touches #111 #117 #130
2018-07-16 22:29:10 +08:00
Thomas Buckley-Houston 24fcd9f562 Fix JS test after char size hardcoding 2018-07-16 18:22:37 +08:00
Thomas Buckley-Houston 38cf92b486 Prettier formatting fix 2018-07-16 18:08:04 +08:00
Thomas Buckley-Houston acfb118008 Merge branch 'master' of github.com:browsh-org/browsh 2018-07-16 18:02:27 +08:00
Thomas Buckley-Houston 527df8bb16 Fix for non-ASCII chars generating extra chars
This was caused by misunderstanding of the finer details of strings,
runes and slices. I just changed the input_box struct to use runes and
then followed the trail of type errors until input_boxes only ever used
strings to send their text outside themselves.

Closes #93
2018-07-16 17:58:53 +08:00
Thomas Buckley-Houston 5a25149fdf Only log char dimensions if they differ 2018-07-16 17:58:29 +08:00
Thomas Buckley-Houston b2988bfa1f Fix for incorrectly calculated char dimensions
There was a bug where raw text pages would unusually truncated. It
seemed to coincide with the char dimensions being incorrectly
calculated. My only guess was that it was because of race condition on
lightweigh sites that didn't load Browsh's webextension code in time.

So for now it just seems better to hard code the char dimensions, which
should at least be more reliable than the bugs of dynamically
calculating them .
2018-07-16 13:56:24 +08:00
ovidr 22261fc835 Reverted one change
Switched "a feature parity" to "feature parity"
2018-07-15 20:44:46 +07:00
ovidr 22881214ae Update README.md
Changed "Why?" to "Why use Browsh?"
Removed avoidable phrases such as "that" and "and uses that"
Divided a run-on sentence by using a period
Switched "Firefox =>57" to "Firefox 57 (or higher)
Shortened the documentation sentence and link
2018-07-15 20:44:46 +07:00
Thomas Buckley-Houston 79bd148a60 Add OpenBSD build
Touches #126 /cc @vext01
2018-07-14 21:25:29 +08:00
Thomas Buckley-Houston 7312e4971f Merge branch 'master' of github.com:browsh-org/browsh 2018-07-13 17:28:54 +08:00
Thomas Buckley-Houston effa2acc77 Add `caveats` to Homebrew Tap about FF 57+ dep
Touches #65
2018-07-13 17:28:24 +08:00
Erik O'Leary 63d55b8515 Auto remove container after it exits 2018-07-12 11:14:34 +07:00
Thomas Buckley-Houston 6471b6f42c Remove Firefox as a dep in Brew Tap recipe
Touches #65
2018-07-12 04:44:27 +08:00
Thomas Buckley-Houston 43b738f3de Version 1.3.2 2018-07-11 18:07:58 +08:00
Thomas Buckley-Houston 1bfb10f022 Don't UPX compress linux_arm64 binary 2018-07-11 18:04:12 +08:00
Thomas Buckley-Houston 21bd850f50 Missing `-` in goreleaser :/
Bump to v1.3.1
2018-07-11 17:55:35 +08:00
Thomas Buckley-Houston 3cac9eb9a0 Remove webext from prettier check path 2018-07-11 17:46:16 +08:00
Thomas Buckley-Houston 1c605e2c0d Prepend `prettier` with node_modules/.bin path 2018-07-11 17:42:16 +08:00