2021-03-05 19:29:20 +01:00
|
|
|
Bebop
|
|
|
|
=====
|
|
|
|
|
|
|
|
Bebop is a [Gemini][gemini] browser for the terminal, focusing on practicality
|
2021-05-16 00:40:21 +02:00
|
|
|
and laziness. It is a personal project to learn how to use ncurses and try new
|
2021-03-05 19:29:20 +01:00
|
|
|
ways to explore the Geminispace. It borrows some ideas from [Amfora][amfora],
|
|
|
|
another great terminal browser, Vim for interactivity and tries to support mouse
|
2021-06-11 18:30:42 +02:00
|
|
|
usage decently. It also supports some “smol net” protocols such as Finger and
|
|
|
|
Gopher through plugins.
|
2021-03-05 19:29:20 +01:00
|
|
|
|
|
|
|
[gemini]: https://gemini.circumlunar.space/
|
|
|
|
[amfora]: https://github.com/makeworld-the-better-one/amfora
|
|
|
|
|
2021-03-13 16:33:04 +01:00
|
|
|
If you are interested in Gemini and looking for a desktop/laptop client, I
|
|
|
|
recommend trying a graphical one like the excellent [Lagrange][lagrange] or
|
|
|
|
[Kristall][kristall], or Amfora if you're feeling more at home in the terminal.
|
2021-05-16 00:40:21 +02:00
|
|
|
Bebop won't attempt to support every feature other clients might have, but if
|
|
|
|
you want to try something a bit different, keep reading…
|
2021-03-05 19:29:20 +01:00
|
|
|
|
|
|
|
[lagrange]: https://git.skyjake.fi/skyjake/lagrange
|
|
|
|
[kristall]: https://kristall.random-projects.net/
|
|
|
|
|
2021-06-01 00:15:14 +02:00
|
|
|
Screenshots:
|
|
|
|
|
|
|
|
![welcome screenshot](https://files.dece.space/img/bebop/bebop-welcome.png)
|
|
|
|
![browsing Medusae screenshot](https://files.dece.space/img/bebop/bebop-medusae.png)
|
|
|
|
![browsing Spacewalk screenshot](https://files.dece.space/img/bebop/bebop-spacewalk.png)
|
|
|
|
|
2021-06-04 13:50:36 +02:00
|
|
|
The changelog is in the annotated tags.
|
|
|
|
|
2021-03-05 19:29:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
Features
|
|
|
|
--------
|
|
|
|
|
2021-04-18 02:27:05 +02:00
|
|
|
Why use Bebop instead of something else?
|
2021-03-05 19:29:20 +01:00
|
|
|
|
2021-05-16 00:40:21 +02:00
|
|
|
- Lightweight, no external Python dependencies.
|
|
|
|
- Nice keybinds are defined, and Vim users should get quickly familiar with
|
|
|
|
them.
|
|
|
|
- Fun! Link navigation is done by entering the link ID with automatic
|
2021-05-30 02:21:47 +02:00
|
|
|
validation so you can just smash your numpad to take your ship to unknown
|
|
|
|
places (see usage section below for details).
|
2021-05-16 00:40:21 +02:00
|
|
|
- History, cache, client certificates, bookmarks (it's just a text file with
|
2021-06-04 18:20:06 +02:00
|
|
|
bindings), downloads, plugins and more!
|
2021-04-18 02:27:05 +02:00
|
|
|
|
2021-05-09 01:39:33 +02:00
|
|
|
|
2021-04-18 02:27:05 +02:00
|
|
|
|
2021-05-16 00:40:21 +02:00
|
|
|
Install
|
|
|
|
-------
|
2021-04-18 02:27:05 +02:00
|
|
|
|
2021-06-01 14:26:23 +02:00
|
|
|
You need Python 3.7 or more recent. If you don't know what Python is or if you
|
|
|
|
have it installed, check out this Gemini link `gemini://dece.space/dev/faq/using-python-programs.gmi` ([Web version][py-faq-http]).
|
|
|
|
|
|
|
|
[py-faq-http]: https://portal.mozz.us/gemini/dece.space/dev/faq/using-python-programs.gmi
|
|
|
|
|
2022-01-02 17:06:49 +01:00
|
|
|
The recommended installation method is using Pipx, but using Pip is fine, either
|
|
|
|
user or system-wide installation.
|
2021-06-04 13:50:36 +02:00
|
|
|
|
2021-05-30 02:21:47 +02:00
|
|
|
```bash
|
2021-06-04 13:50:36 +02:00
|
|
|
# User installation:
|
|
|
|
pip3 install --user bebop-browser
|
2021-08-18 18:07:57 +02:00
|
|
|
# User installation using pipx:
|
|
|
|
pipx install bebop-browser
|
2021-06-04 13:50:36 +02:00
|
|
|
# System-wide installation:
|
|
|
|
sudo pip3 install bebop-browser
|
2021-05-30 02:21:47 +02:00
|
|
|
```
|
|
|
|
|
2021-06-04 13:50:36 +02:00
|
|
|
To update:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# User update:
|
|
|
|
pip3 install --user --upgrade bebop-browser
|
2021-08-18 18:07:57 +02:00
|
|
|
# User update using pipx:
|
|
|
|
pipx upgrade bebop-browser
|
2021-06-04 13:50:36 +02:00
|
|
|
# System-wide update:
|
|
|
|
sudo pip3 install --upgrade bebop-browser
|
|
|
|
```
|
|
|
|
|
|
|
|
Note that you can also simply clone this repo and use `python3 -m bebop` to run
|
|
|
|
from the source instead of installing it.
|
|
|
|
|
2021-06-04 18:20:06 +02:00
|
|
|
### Platform specific info
|
2021-05-30 02:21:47 +02:00
|
|
|
|
2021-06-04 18:20:06 +02:00
|
|
|
#### Linux
|
2021-05-30 02:21:47 +02:00
|
|
|
|
|
|
|
Linux is the main platform I can test so you should be good to go, and don't
|
|
|
|
hesitate to report issues.
|
|
|
|
|
2021-06-04 18:20:06 +02:00
|
|
|
#### BSD
|
2021-05-30 02:21:47 +02:00
|
|
|
|
|
|
|
I don't know! Let me know your experience with it if you did try it.
|
|
|
|
|
2021-06-04 18:20:06 +02:00
|
|
|
#### macOS
|
2021-05-30 02:21:47 +02:00
|
|
|
|
|
|
|
It should work on macOS like on other UNIX-like systems. I have limited access
|
|
|
|
to devices running macOS so cross your fingers… The main difference I've seen is
|
|
|
|
that some keys may behave a bit differently and that text attributes such as
|
|
|
|
italics or dim may not work.
|
|
|
|
|
2021-06-04 18:20:06 +02:00
|
|
|
#### Windows
|
2021-05-30 02:21:47 +02:00
|
|
|
|
|
|
|
Bebop relies heavily on ncurses to display its content to the terminal, and it
|
|
|
|
does not work great on Windows. You need to install the curses support
|
|
|
|
separately as most Python distributions on Windows do not have it: the package
|
|
|
|
`windows-curses` on PyPI seems to work here.
|
|
|
|
|
|
|
|
Seems like there is no color support out of the box nor text attributes. It
|
|
|
|
works OK in cmd.exe, but it feels completely broken on Windows Terminal.
|
2021-04-18 02:27:05 +02:00
|
|
|
|
2021-06-04 18:20:06 +02:00
|
|
|
### Plugins
|
|
|
|
|
|
|
|
Since v0.2.0 you can use and develop plugins for Bebop. Installing a plugin
|
|
|
|
requires you to install the corresponding Python package, usually from PyPI,
|
|
|
|
then enable the plugin in your config file. Check the internal help page or the
|
2021-06-11 18:30:42 +02:00
|
|
|
`bebop/plugins.py` module for more information.
|
2021-06-04 18:20:06 +02:00
|
|
|
|
|
|
|
Here is a list of plugins I did, available on PyPI:
|
|
|
|
|
|
|
|
- `bebop-browser-finger`: support for Finger protocol ([readme][plugin-finger])
|
2021-06-11 18:30:42 +02:00
|
|
|
- `bebop-browser-gopher`: support for Gopher protocol ([readme][plugin-gopher])
|
2021-06-04 18:20:06 +02:00
|
|
|
|
|
|
|
[plugin-finger]: plugins/finger/README.md
|
2021-06-11 18:30:42 +02:00
|
|
|
[plugin-gopher]: plugins/gopher/README.md
|
2021-06-04 18:20:06 +02:00
|
|
|
|
2022-01-02 17:06:49 +01:00
|
|
|
Plugins have to be installed in the same Python environment as Bebop. If you
|
|
|
|
installed Bebop using Pipx, this is done using the `inject` command.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# Installating the Gopher plugin in the user environment:
|
|
|
|
pip3 install --user bebop-browser-gopher
|
|
|
|
# Installating the Gopher plugin for a Pipx installation:
|
|
|
|
pipx inject bebop-browser bebop-browser-gopher
|
|
|
|
```
|
|
|
|
|
2021-04-18 02:27:05 +02:00
|
|
|
|
|
|
|
|
2021-05-16 00:40:21 +02:00
|
|
|
Usage
|
|
|
|
-----
|
2021-04-18 02:27:05 +02:00
|
|
|
|
2021-05-30 02:21:47 +02:00
|
|
|
Just run `bebop`, optionally following by an URL (`bebop -h` to see options). I
|
|
|
|
have it aliased to "bop" but that is up to you.
|
2021-04-18 02:27:05 +02:00
|
|
|
|
2021-05-16 00:40:21 +02:00
|
|
|
Documentation about the keybinds, config values and commands are embed into the
|
|
|
|
software itself: press "?" to display the help page.
|
2021-04-18 02:27:05 +02:00
|
|
|
|
2021-05-30 02:21:47 +02:00
|
|
|
The first thing you will want to get used to is the link navigation. All links
|
|
|
|
have an ID written before them and you press the corresponding number to access
|
|
|
|
it. If there are less than 10 links on a page, pressing the link ID will take
|
|
|
|
you to the page directly. If there are 30 links, pressing "1" will wait for
|
|
|
|
another digit. If there are 1000 links but you wish to visit link 5, pressing 5
|
|
|
|
and enter will do.
|
|
|
|
|
2021-06-04 13:50:36 +02:00
|
|
|
There is an FAQ at `gemini://dece.space/dev/bebop.gmi`.
|
2021-05-30 02:21:47 +02:00
|
|
|
|
2021-05-16 00:40:21 +02:00
|
|
|
Happy browsing!
|
2021-05-30 02:21:47 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
About
|
|
|
|
-----
|
|
|
|
|
|
|
|
Licensed under GPLv3.
|
|
|
|
|
|
|
|
Name comes from [this song][bop] which is good background music for browsing
|
|
|
|
Gemini. Oh and Cowboy Bebop.
|
|
|
|
|
|
|
|
[bop]: https://www.youtube.com/watch?v=tWyUYAmmtNg
|