2021-03-05 19:29:20 +01:00
|
|
|
Bebop
|
|
|
|
=====
|
|
|
|
|
|
|
|
Bebop is a [Gemini][gemini] browser for the terminal, focusing on practicality
|
|
|
|
and speed. It is a personal project to learn how to use ncurses and try new
|
|
|
|
ways to explore the Geminispace. It borrows some ideas from [Amfora][amfora],
|
|
|
|
another great terminal browser, Vim for interactivity and tries to support mouse
|
|
|
|
usage decently.
|
|
|
|
|
|
|
|
[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.
|
|
|
|
Bebop won't attempt to support every feature other clients might have.
|
2021-03-05 19:29:20 +01:00
|
|
|
|
|
|
|
[lagrange]: https://git.skyjake.fi/skyjake/lagrange
|
|
|
|
[kristall]: https://kristall.random-projects.net/
|
|
|
|
|
|
|
|
It passes the Conman's client test but not Egsam's for now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-04-18 02:27:05 +02:00
|
|
|
### Lightweight
|
2021-03-05 19:29:20 +01:00
|
|
|
|
2021-04-19 02:04:18 +02:00
|
|
|
It does not use any external dependencies. Everything including NCurses or TLS
|
|
|
|
is done using Python's standard library.
|
2021-04-18 02:27:05 +02:00
|
|
|
|
2021-04-18 16:10:48 +02:00
|
|
|
### Nice keybinds
|
|
|
|
|
2021-04-19 02:04:18 +02:00
|
|
|
A lot of keybinds are defined, and Vim users should get quickly familiar with
|
|
|
|
them. Find them in the help page by pressing `?`.
|
2021-04-18 16:10:48 +02:00
|
|
|
|
2021-04-18 02:27:05 +02:00
|
|
|
### Fun
|
|
|
|
|
|
|
|
Link navigation is done by entering the link ID with automatic validation: 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!
|
|
|
|
|
|
|
|
Of course this is based on my own perception of what exactly makes a client
|
|
|
|
"fun" to use, but give it a shot!
|
|
|
|
|
|
|
|
### And more!
|
|
|
|
|
|
|
|
It does not try to do many things. Common basic browsing features work: go to
|
|
|
|
URL, scrolling, follow links, redirections, page encodings, etc.
|
|
|
|
|
|
|
|
It also provide these features:
|
2021-03-05 19:29:20 +01:00
|
|
|
|
2021-04-16 19:30:33 +02:00
|
|
|
- History
|
|
|
|
- Caching
|
2021-05-09 01:39:33 +02:00
|
|
|
- Bookmarks (it's just a text file with bindings)
|
2021-04-18 02:27:05 +02:00
|
|
|
- Downloads
|
2021-04-16 19:30:33 +02:00
|
|
|
|
|
|
|
Check out [this board](BOARD.txt) for what's done and coming next.
|
2021-03-05 19:29:20 +01:00
|
|
|
|
|
|
|
|
2021-04-18 02:27:05 +02:00
|
|
|
|
|
|
|
Configuration
|
|
|
|
-------------
|
|
|
|
|
|
|
|
Bebop uses a JSON file (usually in `~/.config`). It is created with default
|
|
|
|
values on first start. It is never written to afterwards: you can edit it when
|
|
|
|
you want, just restart Bebop to take changes into account.
|
|
|
|
|
|
|
|
Here are the available options:
|
|
|
|
|
2021-05-09 01:39:33 +02:00
|
|
|
| Key | Type | Default | Description |
|
|
|
|
|----------------------------|--------------|----------------|---------------------------------------|
|
|
|
|
| `connect_timeout` | int | 10 | Seconds before connection times out. |
|
|
|
|
| `text_width` | int | 80 | Rendered line length. |
|
2021-05-09 23:02:56 +02:00
|
|
|
| `download_path` | string | | Download path. |
|
2021-05-09 01:39:33 +02:00
|
|
|
| `source_editor` | string list | `["vi"]` | Command to use for editing sources. |
|
|
|
|
| `command_editor` | string list | `["vi"]` | Command to use for editing CLI input. |
|
2021-05-09 01:42:31 +02:00
|
|
|
| `history_limit` | int | 1000 | Maximum entries in history. |
|
2021-05-09 01:39:33 +02:00
|
|
|
| `external_commands` | (see note 2) | {} | Commands to open various files. |
|
|
|
|
| `external_command_default` | string list | `["xdg-open"]` | Default command to open files. |
|
2021-04-18 02:27:05 +02:00
|
|
|
|
|
|
|
Note: for the "command" parameters such as `source_editor` and `command_editor`,
|
|
|
|
a string list is used to separate the different program arguments, e.g. if you
|
|
|
|
wish to use `vim -c 'startinsert'`, you should write the list `["vim", "-c",
|
|
|
|
"startinsert"]`. In both case, a temporary or regular file name will be appended
|
|
|
|
to this command when run.
|
|
|
|
|
2021-05-09 01:39:33 +02:00
|
|
|
2: the `external_commands` dict maps MIME types to commands just as above. For
|
|
|
|
example, if you want to open video files with VLC and audio files in Clementine,
|
|
|
|
you can use the following dict: `{"audio": ["clementine"], "video", ["vlc"]}`.
|
|
|
|
For now only "main" MIME types are supported, i.e. you cannot specify precise
|
|
|
|
types like "audio/flac", just "audio".
|
|
|
|
|
2021-04-18 02:27:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
FAQ
|
|
|
|
---
|
|
|
|
|
|
|
|
### Can I change the colors?
|
|
|
|
|
|
|
|
I do not plan to allow modifying the colors or elements style for now. Configure
|
|
|
|
a nice palette for your terminal so that Bebop fits nicely in there!
|
|
|
|
|
|
|
|
### Will Bebop implement subscriptions?
|
|
|
|
|
|
|
|
I have no need for them as I prefer to use a browser-agnostic aggregator at the
|
|
|
|
moment, so no.
|
|
|
|
|
|
|
|
### WTF is wrong with the command line?
|
|
|
|
|
|
|
|
I don't understand how you're supposed to create a fine input field in pure
|
|
|
|
curses without the form extension library, which is not available from Python.
|
|
|
|
Or, I think I understand but it's way too hard for the limited time I have to
|
|
|
|
work on Bebop. So the command line is based on the very limited Textbox class;
|
|
|
|
it's fine for entering a simple URL or a bookmark title but if you need to type
|
|
|
|
more than the window's width, press `M-e` (ALT + e) to open an editor.
|