1
0
mirror of https://git.sr.ht/~sotirisp/qute-gemini synced 2024-11-23 12:32:04 +01:00

Update keybinding recommendation

This commit is contained in:
Sotiris Papatheodorou 2021-03-06 18:48:59 +02:00
parent c0b00acfd4
commit 896d91aca8

@ -12,21 +12,24 @@ thanks to its authors!
## Installation ## Installation
1. Copy `qute-gemini` and `qute-gemini-tab` into 1. Copy `qute-gemini` and `qute-gemini-tab` into
`~/.local/share/qutebrowser/userscripts/`. `~/.local/share/qutebrowser/userscripts/`.
2. Add the following lines to `~/.config/qutebrowser/config.py` 2. Set custom keybinding for opening Gemini URLs by adding the following lines
to `~/.config/qutebrowser/config.py`:
``` python ``` python
config.bind('f', 'hint links userscript qute-gemini') # Open in the current tab
config.bind('F', 'hint links userscript qute-gemini-tab') config.bind(';g', 'hint links userscript qute-gemini')
# Open in a new tab
config.bind(';G', 'hint links userscript qute-gemini-tab')
``` ```
The script only processes `gemini://` URLs and opens all other URLs using The script only processes `gemini://` URLs and opens all other URLs using
qutebrowser, so it should be safe to replace the default hint keybindings. qutebrowser, so opening a non-`gemini://` should also work.
3. Re-source the qutebrowser config and visit the 3. Re-source the qutebrowser config or restart qutebrowser and visit the
[Gemini spec homepage](gemini://gemini.circumlunar.space) [Gemini spec homepage](gemini://gemini.circumlunar.space)
to ensure that everything works. to ensure that everything works.
@ -34,7 +37,6 @@ to ensure that everything works.
- Userscript limitations - Userscript limitations
- Only `text/gemini` content is shown. - Only `text/gemini` content is shown.
- Probably tons of usability issues.
- Qutebrowser limitations - Qutebrowser limitations
- Opening `gemini://` URLs by clicking on them does not work, only opening - Opening `gemini://` URLs by clicking on them does not work, only opening
them via the keybinding is possible. them via the keybinding is possible.