commit - 05d87bafea0acc2bb9f304b9c1f6f09f13f54dd1
commit + 1c1e3e26ede69b7186bce991a7873d56bc07dd83
blob - 0b1a3d571cbdfade194800ea8f90c6cb211b8d99
blob + c71788165a8053523f8dfbf8316c38ba7ab0cca8
--- site/Makefile
+++ site/Makefile
-.PHONY: all serve-www serve-gemini upload
+RSYNC = openrsync --rsync-path=openrsync
-all: telescope.1.html telescope.1.txt
+MANPAGES = ../telescope.1
-telescope.1.html: ../telescope.1
- ./mdoc2html.sh $? $@
+PAGES = index.gmi \
+ gallery.gmi
+# changelog.gmi
-telescope.1.txt: ../telescope.1
- MANWIDTH=72 man -Tutf8 -l $? | col -b > $@
+TITLE_index.gmi = Home
+TITLE_changelog.gmi = ChangeLog
+TITLE_gallery.gmi = Gallery
+REPOLOGY_BANNER = https://repology.org/badge/vertical-allrepos/telescope.svg
+REPOLOGY_URL = https://repology.org/project/telescope/versions
+
+SUBST = ./subst CURRV=0.8.1 NEXTV=0.9 \
+ GH=https://github.com/omar-polo/telescope \
+ CURRSIGN=RWQ12hzRNC/1NhZD56pU1YaRg5AYSEWg9gId5M3e9zwuufmwnbd7WrMb \
+ NEXTSIGN=RWSmshjFM8Q0IDYUd4I/8G2q9Y0DUaZLac4enOtQh5rzsIcVF+ePXCy7 \
+ REPOLOGY_BANNER=${REPOLOGY_BANNER} \
+ REPOLOGY_URL=${REPOLOGY_URL}
+
+SUBST_GEM = ${SUBST} MANEXT=txt EXT=gmi
+SUBST_WWW = ${SUBST} MANEXT=html EXT=html
+
+.PHONY: all dirs manpages serve-www serve-gemini upload clean titles
+
+all: dirs manpages pages
+ cp logo.png gemini/
+ cp mandoc.css style.css www/
+ cp logo.png www/
+ cp -R gallery gemini
+ cp -R gallery www
+ convert logo.png -resize 200x200 www/logo.small.png
+
+dirs:
+ mkdir -p gemini www
+
+manpages:
+.for m in ${MANPAGES}
+ man -O style=mandoc.css -Thtml -l $m > www/${m:T}.html
+ man -O width=64 -Tutf8 -l $m | col -b > gemini/${m:T}.txt
+.endfor
+
+pages:
+.for p in ${PAGES}
+ grep -v '^<' $p | ${SUBST_GEM} > gemini/$p
+
+ ${SUBST_WWW} TITLE=${TITLE_${p}:Q} header.html > www/$p
+ ${MAKE} titles | ./menu.pl "${p:.gmi=.html}" >> www/$p
+ ${SUBST_WWW} $p | ./gem2html >> www/$p
+ cat footer.html >> www/$p
+ cd www && mv $p ${p:.gmi=.html}
+.endfor
+
serve-www:
- python3 -m http.server 8888
+ python3 -m http.server --directory www 8888
serve-gemini:
- gmid -p 1966 .
+ ge -p 1966 gemini
upload:
- openrsync --rsync-path=openrsync --del -a . antartica:/var/www/telescope.omarpolo.com
- openrsync --rsync-path=openrsync --del -a . antartica:/var/gemini/telescope.omarpolo.com
+ ${RSYNC} --del -a . antartica:/var/www/telescope.omarpolo.com
+ ${RSYNC} --del -a . antartica:/var/gemini/telescope.omarpolo.com
+
+clean:
+ rm -rf gemini www
+
+titles:
+.for p in ${PAGES}
+ @printf "%s %s\n" "${p:.gmi=.html}" ${TITLE_${p}:Q}
+.endfor
blob - 41ccc459cd6ee5580d49717898287c038862af1e (mode 644)
blob + /dev/null
--- site/gallery/index.gmi
+++ /dev/null
-=> / Home
-=> /telescope.1.txt Docs
-
-# Gallery
-
-=> xterm-default-look.png default look on bright terminal
-=> kitty-default-look.png default look on dark terminal
-
-=> xterm-contrib-light.png the contrib/light theme
-=> kitty-contrib-dark.png the contrib/dark theme
-
-=> xterm-contrib-light-swiper.png swiper with the contrib/light theme
-=> kitty-contrib-dark-swiper.png swiper with the contrib/dark theme
-
-=> xterm-contrib-light-about-help.png about:help with the contrib/light theme
-=> kitty-contrib-dark-about-help.png about:help with the contrib/dark theme
-
-=> contrib-brutalist.png Brutalist theme
blob - 71690c81c7272991672606de578b89c5136bf673 (mode 644)
blob + /dev/null
--- site/gallery/index.html
+++ /dev/null
-<!doctype html>
-<html>
- <head>
- <title>Gallery | Telescope</title>
- <meta charset="utf8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style>
- body {
- font-family: monospace;
- font-size: 14px;
- max-width: 780px;
- margin: 0 auto;
- padding: 20px;
- padding-bottom: 80px;
- }
-
- h1::before {
- content: "# ";
- }
-
- h2 {
- margin-top: 40px;
- }
-
- h2::before {
- content: "## ";
- }
-
- h3::before {
- content: "### ";
- }
-
- blockquote {
- margin: 0;
- padding: 0;
- }
-
- blockquote::before {
- content: "> ";
- }
-
- blockquote p {
- font-style: italic;
- display: inline;
- }
-
- p.link::before {
- content: "→ ";
- }
-
- hr {
- border: 0;
- height: 1px;
- background-color: #222;
- width: 100%;
- display: block;
- margin: 2em auto;
- }
-
- pre {
- overflow: auto;
- }
-
- pre.banner {
- display: flex;
- flex-direction: row;
- justify-content: center;
- }
-
- code, kbd {
- color: #9d109d;
- }
-
- img {
- display: block;
- margin: 0 auto;
- max-width: 100%;
- }
-
- figcaption {
- margin: 0;
- padding: 10px 0;
- text-align: center;
- }
-
- main {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: space-around;
- }
-
- figure {
- width: 40%;
- margin: 1rem;
- }
-
- @media (prefers-color-scheme: dark) {
- body {
- background-color: #222;
- color: white;
- }
-
- img {
- filter: brightness(0.65);
- transition: filter 0.2s ease-in-out;
- }
-
- img:hover {
- filter: brightness(1.0);
- }
-
- a {
- color: aqua;
- }
-
- hr {
- background-color: #ddd;
- }
-
- code, kbd {
- color: #ff4cff;
- }
- }
-
- @media (max-width: 400px) {
- pre.banner { font-size: 9px; }
- }
-
- @media (max-width: 500px) {
- pre.banner { font-size: 10px; }
- }
- </style>
- </head>
- <body>
- <header>
- <nav>
- <a href="/">Home</a> | Gallery | <a href="/telescope.1.html">Docs</a>
- </nav>
- </header>
- <main>
-
- <figure>
- <a href="xterm-default-look.png">
- <img src="thumb-xterm-default-look.png" alt="xterm-default-look.png" />
- </a>
- <figcaption>default look on bright terminal</figcaption>
- </figure>
-
- <figure>
- <a href="kitty-default-look.png">
- <img src="thumb-kitty-default-look.png" alt="kitty-default-look.png" />
- </a>
- <figcaption>default look on dark terminal</figcaption>
- </figure>
-
- <figure>
- <a href="xterm-contrib-light.png">
- <img src="thumb-xterm-contrib-light.png" alt="xterm-contrib-light.png" />
- </a>
- <figcaption>the contrib/light theme</figcaption>
- </figure>
-
- <figure>
- <a href="kitty-contrib-dark.png">
- <img src="thumb-kitty-contrib-dark.png" alt="kitty-contrib-dark.png" />
- </a>
- <figcaption>the contrib/dark theme</figcaption>
- </figure>
-
- <figure>
- <a href="xterm-contrib-light-swiper.png">
- <img src="thumb-xterm-contrib-light-swiper.png" alt="xterm-contrib-light-swiper.png" />
- </a>
- <figcaption>swiper with the contrib/light theme</figcaption>
- </figure>
-
- <figure>
- <a href="kitty-contrib-dark-swiper.png">
- <img src="thumb-kitty-contrib-dark-swiper.png" alt="kitty-contrib-dark-swiper.png" />
- </a>
- <figcaption>swiper with the contrib/dark theme</figcaption>
- </figure>
-
- <figure>
- <a href="xterm-contrib-light-about-help.png">
- <img src="thumb-xterm-contrib-light-about-help.png" alt="xterm-contrib-light-about-help.png" />
- </a>
- <figcaption>about:help with the contrib/light theme</figcaption>
- </figure>
-
- <figure>
- <a href="kitty-contrib-dark-about-help.png">
- <img src="thumb-kitty-contrib-dark-about-help.png" alt="kitty-contrib-dark-about-help.png" />
- </a>
- <figcaption>about:help with the contrib/dark theme</figcaption>
- </figure>
-
- <figure>
- <a href="contrib-brutalist.png">
- <img src="thumb-contrib-brutalist.png" alt="contrib-brutalist.png" />
- </a>
- <figcaption>Brutalist theme</figcaption>
- </figure>
-
- </main>
- </body>
-</html>
blob - /dev/null
blob + 0b1a491b5687a2f04fc2899785ab32d9ad570866 (mode 644)
--- /dev/null
+++ site/footer.html
+ <footer>
+ <p>
+ This site over
+ <a href="gemini://telescope.omarpolo.com">
+ <code>gemini://</code>
+ </a>
+ </p>
+ </footer>
+ </body>
+</html>
blob - 1ea617af1ca3336baf364364422d6a1c3067eca4
blob + 37260e1d055893b0745e2e3e0d916d3b23c930c8
--- site/index.gmi
+++ site/index.gmi
-=> /gallery/ Gallery
-=> /telescope.1.txt Docs
-
-# Telescope
-
-> Telescope is a w3m-like browser for Gemini.
-
-``` Ascii art of the word “Telescope” and “v0.8.1”
+<div class="banner">
+``` Ascii art of the word “Telescope” and “vCURRV”
_______ __
|_ _|.-----.| |.-----.-----.----.-----.-----.-----.
| | | -__|| || -__|__ --| __| _ | _ | -__|
|___| |_____||__||_____|_____|____|_____| __|_____|
- |__| v0.8.1
+ |__| vCURRV
```
+</div>
+> Telescope is a w3m-like browser for Gemini.
+
+<section class="with-image">
+<img src="logo.small.png" alt="the teleoscope logo: a telescope on a tripode with a city and the earth seen from space in the background, with some stars behind" title='Telescope logo -- by freezr'>
+<div>
+
Telescope is written entirely for fun, as a hobbystic project in my free time. As such, it lacks a ton of features you’ll find in more mature Gemini browsers, but it also has some unique ones.
+=> telescope.1.MANEXT documentation
+
The UI is strongly inspired from Emacs and W3M, so you’ll find some familiar concepts, such as the minibuffer or the tabline, and the default keybindigs also reflect this, but care has been taken to add keys familiar for vi and CUA users too.
+</div>
+</section>
+<p><a href="https://asciinema.org/a/426862" target="_blank"><img src="https://asciinema.org/a/426862.svg" /></a></p>
=> https://asciinema.org/a/426862 Asciinema record
## Install
-=> https://repology.org/project/telescope/versions Some distros provide a package — thanks to the maintainers!
+<p class='repology'><a href='REPOLOGY_URL'><img src='REPOLOGY_BANNER' alt='distro that provide a telescope package' /></a></p>
+=> REPOLOGY_URL Some distros provide a package — thanks to the maintainers!
Source code and precompiled binaries for linux are available:
blob - b14dfdf26f91f3d4f921a78bc9ae964c9fe21051 (mode 644)
blob + /dev/null
--- site/index.html
+++ /dev/null
-<!doctype html>
-<html lang="en">
- <head>
- <title>Telescope</title>
- <meta charset="utf8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style>
- body {
- font-family: monospace;
- font-size: 14px;
- max-width: 780px;
- margin: 0 auto;
- padding: 20px;
- padding-bottom: 80px;
- }
-
- h1::before {
- content: "# ";
- }
-
- h2 {
- margin-top: 40px;
- }
-
- h2::before {
- content: "## ";
- }
-
- h3::before {
- content: "### ";
- }
-
- blockquote {
- margin: 0;
- padding: 0;
- }
-
- blockquote::before {
- content: "> ";
- }
-
- blockquote p {
- font-style: italic;
- display: inline;
- }
-
- p.link::before {
- content: "→ ";
- }
-
- hr {
- border: 0;
- height: 1px;
- background-color: #222;
- width: 100%;
- display: block;
- margin: 2em auto;
- }
-
- pre {
- overflow: auto;
- }
-
- pre.banner {
- display: flex;
- flex-direction: row;
- justify-content: center;
- }
-
- code, kbd {
- color: #9d109d;
- }
-
- img {
- display: block;
- margin: 0 auto;
- max-width: 100%;
- }
-
- @media (prefers-color-scheme: dark) {
- body {
- background-color: #222;
- color: white;
- }
-
- img {
- filter: brightness(0.65);
- transition: filter 0.2s ease-in-out;
- }
-
- img:hover {
- filter: brightness(1.0);
- }
-
- a {
- color: aqua;
- }
-
- hr {
- background-color: #ddd;
- }
-
- code, kbd {
- color: #ff4cff;
- }
- }
-
- @media (max-width: 400px) {
- pre.banner { font-size: 9px; }
- }
-
- @media (max-width: 500px) {
- pre.banner { font-size: 10px; }
- }
- </style>
- </head>
- <body>
- <header>
- <nav>
- Home | <a href="/gallery/">Gallery</a> | <a href="telescope.1.html">Docs</a>
- </nav>
- </header>
- <pre class="banner"> _______ __
-|_ _|.-----.| |.-----.-----.----.-----.-----.-----.
- | | | -__|| || -__|__ --| __| _ | _ | -__|
- |___| |_____||__||_____|_____|____|_____| __|_____|
- |__| v0.8.1</pre>
- <blockquote>
- <p>Telescope is a w3m-like browser for Gemini</p>
- </blockquote>
- <p>
- Telescope is written entirely for fun, as a hobbystic project in
- my free time. As such, it lacks a ton of features you’ll find
- in more mature Gemini browsers, but it also has some unique
- ones.
- </p>
- <p>
- The UI is strongly inspired from Emacs and W3M, so you’ll find
- some familiar concepts, such as the minibuffer or the tabline,
- and the default keybindigs also reflect this, but keys familiar
- for vi and CUA users are also present by default.
- </p>
- <p>
- <a href="https://asciinema.org/a/426862" target="_blank">
- <img src="https://asciinema.org/a/426862.svg" />
- </a>
- </p>
- <h2>Install</h2>
- <p>Some distros provide a package — thanks to the maintainers!</p>
- <a href="https://repology.org/project/telescope/versions">
- <img src="https://repology.org/badge/vertical-allrepos/telescope.svg" alt="Packaging status">
- </a>
- <p>Source code and precompiled binaries for linux are available:</p>
- <ul>
- <li>
- <a href="https://github.com/omar-polo/telescope/releases/download/0.8.1/telescope-0.8.1.tar.gz">
- telescope-0.8.1.tar.gz
- </a>
- </li>
- <li>
- <a href="https://git.omarpolo.com/?index_page=&path=telescope.git&action=summary">git repository</a>
- </li>
- <li>
- <a href="https://codeberg.org/op/telescope">Codeberg mirror</a>
- </li>
- <li>
- <a href="https://github.com/omar-polo/telescope">GitHub mirror</a>
- </li>
- <li>
- <a href="https://github.com/omar-polo/telescope/releases/download/0.8/telescope.amd64">
- telescope.amd64
- </a>
- </li>
- </ul>
- <p>The dependencies are:</p>
- <ul>
- <li>libncurses</li>
- <li>libevent</li>
- <li>libtls (from either LibreSSL or libretls)</li>
- <li>yacc (or GNU bison)</li>
- </ul>
- <p>Once all the dependencies are installed, building is as easy as:</p>
- <pre>$ curl -LO https://github.com/omar-polo/telescope/releases/download/0.8.1/telescope-0.8.1.tar.gz
-$ tar xzvf telescope-0.8.1.tar.gz
-$ cd telescope-0.8.1
-$ ./configure
-$ make
-$ sudo make install # eventually
- </pre>
- <p>
- A SHA256 file containing the checksums is available. However,
- that only checks for accidental corruption: you can use signify
- (<code>SHA256.sig</code> and the public key <code>telescope-0.8.pub</code>).
- The hash of the current and next signify public key is also
- included in the SHA256.
- </p>
- <ul>
- <li>
- <a href="https://github.com/omar-polo/telescope/releases/download/0.8.1/SHA256">
- SHA256
- </a>
- </li>
- <li>
- <a href="https://github.com/omar-polo/telescope/releases/download/0.8.1/SHA256.sig">
- SHA256.sig
- </a>
- </li>
- <li>
- <a href="https://github.com/omar-polo/telescope/releases/download/0.8.1/telescope-0.8.pub">
- telescope-0.8.pub
- </a>
- </li>
- <li>
- <a href="https://github.com/omar-polo/telescope/releases/download/0.8.1/telescope-0.9.pub">
- telescope-0.9.pub
- </a>
- </li>
- </ul>
- <p>How to verify the signature with signify:</p>
- <pre>$ signify -C -p telescope-0.8.1.pub -x SHA256.sig
-Signature Verified
-telescope-0.8.1.tar.gz: OK
-telescope-0.8.pub: OK
-telescope-0.9.pub: OK
-telescope.amd64: OK
- </pre>
- <h2>Changelog</h2>
- <p>0.8.1 “Le Scarpe Volanti” buildfix release — Released May 25, 2022</p>
- <ul>
- <li>Fix the build on macos. Reported by sikmir, thanks!</li>
- </ul>
- <p>0.8 “Le Scarpe Volanti” — Released May 25, 2022</p>
- <h3>New features</h3>
- <ul>
- <li>save and restore scroll position</li>
- <li>new command reply-last-input; idea from a conversation with thfr@, thanks!</li>
- <li>allow push urls to an already opened telescope session</li>
- <li>autocompletions for load-url and load-current-url</li>
- <li>new command write-buffer (with alias w)</li>
- <li>new command mini-kill-whole-line for the minibuffer</li>
- <li>split the minibuffer input into words and try to match out of order</li>
- </ul>
- <h3>Improvements</h3>
- <ul>
- <li>move aliases at the top of the completions</li>
- <li>add alias `open' for load-url; suggested by Florian, thanks!</li>
- <li>update emoji-data.txt to 14.0.0</li>
- <li>persist the list of visited URLs to the disk</li>
- <li>fix builds out-of-tree</li>
- <li>correctly mark variables in the manpage so it's possible to jump to them</li>
- <li>rework completions selection: the selected entry is *always* the one used. if nothing is selected, the minibuffer content is used instead.</li>
- <li>merge the ui and fs processes</li>
- <li>rate-limit the update of the download pane</li>
- </ul>
- <h3>Bug fixes</h3>
- <ul>
- <li>fix parsing of invalid link lines</li>
- <li>initialize each tab' loadingev timer event</li>
- <li>fix the build on recent version of musl</li>
- </ul>
- </body>
-</html>
blob - /dev/null
blob + 66e06dc172e2cd00cee7c3b9b4fb5bfc6cf5e877 (mode 644)
--- /dev/null
+++ site/gallery.gmi
+<main class="gallery">
+=> gallery/xterm-default-look.png default look on bright terminal
+=> gallery/kitty-default-look.png default look on dark terminal
+
+=> gallery/xterm-contrib-light.png the contrib/light theme
+=> gallery/kitty-contrib-dark.png the contrib/dark theme
+
+=> gallery/xterm-contrib-light-swiper.png swiper with the contrib/light theme
+=> gallery/kitty-contrib-dark-swiper.png swiper with the contrib/dark theme
+
+=> gallery/xterm-contrib-light-about-help.png about:help with the contrib/light theme
+=> gallery/kitty-contrib-dark-about-help.png about:help with the contrib/dark theme
+
+=> gallery/contrib-brutalist.png Brutalist theme
+</main>
blob - 4cb718f9d31ec09d1bd023b5bd5aa3322e21f601 (mode 755)
blob + /dev/null
--- site/mdoc2html.sh
+++ /dev/null
-#!/bin/sh
-#
-# usage: mdoc2html.sh src out
-#
-# converts the manpage `src' to the HTML file `out', tweaking the
-# style
-
-set -e
-
-: ${1:?missing input file}
-: ${2:?missing output file}
-
-man -Thtml -l "$1" > "$2"
-
-exec ed "$2" <<EOF
-/<style>
-a
- body {
- max-width: 960px;
- margin: 0 auto;
- padding: 0 10px;
- font-size: 1rem;
- }
-
- pre {
- overflow: auto;
- }
-.
-wq
-EOF
blob - /dev/null
blob + b6c8b70e8bb9be4afb7a39648555fe81cdb833b9 (mode 755)
--- /dev/null
+++ site/gem2html
+#!/usr/bin/env perl
+#
+# Copyright (c) 2022 Omar Polo <op@omarpolo.com>
+#
+# Permission to use, copy, modify, and distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+use v5.10;
+use strict;
+use warnings;
+
+my $in_pre = 0;
+my $in_list = 0;
+
+while (<>) {
+ chomp;
+ if ($in_pre && m/^```/) {
+ $in_pre = 0;
+ say "</pre>";
+ } elsif (!$in_pre && m/^```/) {
+ if ($in_list) {
+ $in_list = 0;
+ say "</ul>";
+ }
+ $in_pre = 1;
+ print "<pre>";
+ } elsif ($in_pre) {
+ say san($_);
+ } elsif (m/^</) {
+ say;
+ } elsif ($in_list && m/^$/) {
+ say "</ul>";
+ $in_list = 0;
+ } elsif (m/^\*\s+(.*)/) { # NB: at least one space
+ if (!$in_list) {
+ $in_list = "item";
+ say "<ul>";
+ } elsif ($in_list eq "link") {
+ $in_list = "item";
+ say "</ul>";
+ say "<ul>";
+ }
+ output("li", $1);
+ } elsif (m/^=>\s*([^\s]*)\s*(.*)$/) {
+ my $href = $1;
+ my $alt = $2 || $1;
+
+ # special case: images
+ if ($1 =~ /\.(png|jpg|svg)$/) {
+ if ($in_list) {
+ say "</ul>";
+ $in_list = 0;
+ }
+ print "<figure>";
+ print "<a href='$href'>";
+ print "<img src='$href' alt='$alt' />";
+ print "</a>";
+ print "<figcaption>$alt</figcaption>";
+ print "</figure>\n";
+ next;
+ }
+
+ if (!$in_list) {
+ $in_list = "link";
+ say "<ul class='link-list'>";
+ } elsif ($in_list eq "item") {
+ $in_list = "link";
+ say "</ul>";
+ say "<ul class='link-list'>";
+ }
+ $_ = $alt;
+ say "<li><a href='$href'>". san() ."</a></li>";
+ } elsif (m/^###\s*(.*)$/) {
+ output("h3", $1);
+ } elsif (m/^##\s*(.*)$/) {
+ output("h2", $1);
+ } elsif (m/^#\s*(.*)$/) {
+ output("h1", $1);
+ } elsif (m/^>\s*(.*)$/) {
+ output("blockquote", $1);
+ } else {
+ output("p", $_);
+ }
+}
+
+say "</ul>" if $in_list;
+say "</pre>" if $in_pre;
+
+sub san {
+ s/&/\&/g;
+ s/</\</g;
+ s/>/\>/g;
+ return $_;
+}
+
+sub output {
+ my ($tn, $content) = @_;
+
+ if (!$in_list && $tn eq "li") {
+ $in_list = 1;
+ say "<ul>";
+ }
+
+ if ($in_list && $tn ne "li") {
+ $in_list = 0;
+ say "</ul>";
+ }
+
+ if ($tn eq "p" && $content eq "") {
+ return;
+ }
+
+ $_ = $content;
+ say "<$tn>". san() ."</$tn>";
+}
blob - 9e8dadd5bb86dd8a11352bf966f2952a2f66b863 (mode 644)
blob + /dev/null
--- site/telescope.1.html
+++ /dev/null
-<!DOCTYPE html>
-<html>
-<!-- This is an automatically generated file. Do not edit.
- Copyright (c) 2021, 2022 Omar Polo <op@omarpolo.com>
-
- Permission to use, copy, modify, and distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- -->
-<head>
- <meta charset="utf-8"/>
- <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
- <style>
- body {
- max-width: 960px;
- margin: 0 auto;
- padding: 0 10px;
- font-size: 1rem;
- }
-
- pre {
- overflow: auto;
- }
- table.head, table.foot { width: 100%; }
- td.head-rtitle, td.foot-os { text-align: right; }
- td.head-vol { text-align: center; }
- .Nd, .Bf, .Op { display: inline; }
- .Pa, .Ad { font-style: italic; }
- .Ms { font-weight: bold; }
- .Bl-diag > dt { font-weight: bold; }
- code.Nm, .Fl, .Cm, .Ic, code.In, .Fd, .Fn, .Cd { font-weight: bold;
- font-family: inherit; }
- </style>
- <title>TELESCOPE(1)</title>
-</head>
-<body>
-<table class="head">
- <tr>
- <td class="head-ltitle">TELESCOPE(1)</td>
- <td class="head-vol">General Commands Manual</td>
- <td class="head-rtitle">TELESCOPE(1)</td>
- </tr>
-</table>
-<div class="manual-text">
-<section class="Sh">
-<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
-<p class="Pp"><code class="Nm">telescope</code> —
- <span class="Nd">multi-protocol browser</span></p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
-<table class="Nm">
- <tr>
- <td><code class="Nm">telescope</code></td>
- <td>[<code class="Fl">-ChnSv</code>]
- [<code class="Fl">-c</code> <var class="Ar">config</var>]
- [<var class="Ar">URL</var>]</td>
- </tr>
-</table>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
-<p class="Pp"><code class="Nm">telescope</code> is an interactive browser that
- supports the Finger, Gemini and Gopher protocols.
- <code class="Nm">telescope</code> features tabs, a minibuffer, interactive
- completions, bookmarks and out-of-band TOFU verification.</p>
-<p class="Pp">The arguments are as follows:</p>
-<dl class="Bl-tag">
- <dt id="C"><a class="permalink" href="#C"><code class="Fl">-C</code></a>,
- <code class="Fl">--colours</code></dt>
- <dd>Show all available colors and exit. This option can also be spelled
- <code class="Fl">--colors</code>.</dd>
- <dt id="c"><a class="permalink" href="#c"><code class="Fl">-c</code></a>
- <var class="Ar">config</var></dt>
- <dd>Specify an alternative configuration file. By default
- <span class="Pa">~/.config/telescope/config</span> is loaded.</dd>
- <dt id="h"><a class="permalink" href="#h"><code class="Fl">-h</code></a>,
- <code class="Fl">--help</code></dt>
- <dd>Display version, usage and exit.</dd>
- <dt id="n"><a class="permalink" href="#n"><code class="Fl">-n</code></a></dt>
- <dd>Configtest mode. Only check the configuration file for validity.</dd>
- <dt id="S"><a class="permalink" href="#S"><code class="Fl">-S</code></a>,
- <code class="Fl">--safe</code></dt>
- <dd>“Safe” (or “sandbox”) mode. Prevent
- <code class="Nm">telescope</code> from writing files to the disk and to
- acquire the lock, allowing to run multiple instances at the same time.
- <code class="Nm">telescope</code> still loads the session file and the
- custom about pages.</dd>
- <dt id="v"><a class="permalink" href="#v"><code class="Fl">-v</code></a>,
- <code class="Fl">--version</code></dt>
- <dd>Display version and exit.</dd>
-</dl>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="UI_CONCEPTS"><a class="permalink" href="#UI_CONCEPTS">UI
- CONCEPTS</a></h1>
-<p class="Pp"><code class="Nm">telescope</code> interface is divided into four
- areas: the tabline, the body, the modeline and the echoarea/minibuffer.</p>
-<p class="Pp">The tabline is always at the top of the screen and displays the
- tabs separated by a vertical line. When there are more tabs than the size of
- the window allow to display, the characters ‘<’ or
- ‘>’ are shown at the start/end of the tabline to indicate
- that there are more tabs in that direction.</p>
-<p class="Pp">The body occupies the majority of the visible area. It contains
- the current page and optionally a side window.</p>
-<p class="Pp">The modeline is the second to last row of the screen. It shows
- some information about the page: a spinner when the page is loading, the
- trust level, the document type, the scroll offset and the URL.</p>
-<p class="Pp">The echoarea is usually the last line of the screen. Messages are
- often showed there, and link addresses too. The echoarea is also used to
- obtain input from the user. When commands like
- <code class="Ic">swiper</code> or <code class="Ic">link-select</code> are
- invoked, the minibuffer area grows to show possible completions.</p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="TOFU"><a class="permalink" href="#TOFU">TOFU</a></h1>
-<p class="Pp"><code class="Nm">telescope</code> aims to use the “Trust,
- but Verify (where appropriate)” approach for TOFU (“Trust On
- First Use”). The idea is to define three level of verification for a
- certificate:</p>
-<dl class="Bl-tag">
- <dt>untrusted</dt>
- <dd>(‘!’) the server fingerprint does NOT match the stored
- value.</dd>
- <dt>trusted</dt>
- <dd>(‘v’) the server fingerprint matches the store one.</dd>
- <dt>verified</dt>
- <dd>(‘V’) the fingerprint matches and has been verified
- out-of-band.</dd>
-</dl>
-<p class="Pp">The trust level of the page is indicated in the modeline with the
- indicated character.</p>
-<p class="Pp">Most of the time the “trusted” level is enough, but
- where is appropriate users should be able to verify out-of-band the
- certificate.</p>
-<p class="Pp">At the moment, there is no built-in support for an out-of-band
- verification though.</p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="SUPPORTED_PROTOCOLS"><a class="permalink" href="#SUPPORTED_PROTOCOLS">SUPPORTED
- PROTOCOLS</a></h1>
-<p class="Pp">The following protocols are supported:</p>
-<dl class="Bl-tag">
- <dt>about:</dt>
- <dd>About pages are <code class="Nm">telescope</code> internal page. See
- about:about for a list of all these pages.</dd>
- <dt>file://</dt>
- <dd>File types know to <code class="Nm">telescope</code>, such as .gmi,
- .gemini, .txt, .md, .markdown, .diff or .patch, can be viewed inside the
- application. Types of local files are detected solely based on the file
- extension. On some systems, such as <span class="Ux">OpenBSD</span>, only
- files inside special directories (like <span class="Pa">/tmp</span>
- <span class="No">or</span> <span class="Pa">~/Downloads</span>) are
- available.</dd>
- <dt>finger://</dt>
- <dd>Finger URLs are interpreted as follows:
- <ul class="Bl-bullet Bl-compact">
- <li>the host is determined by the host name portion of the URL</li>
- <li>if the user portion of the URL is provided, it's interpreted as the
- user to finger, otherwise the path component will be used</li>
- </ul>
- thus <a class="Lk" href="finger://user@hostname">finger://user@hostname</a>
- and <a class="Lk" href="finger://hostname/user">finger://hostname/user</a>
- are treated as the same URL.</dd>
- <dt>gemini://</dt>
- <dd>Gemini is fully supported, with the exception of client-certificates.</dd>
- <dt>gopher://</dt>
- <dd>Gopher support is limited to items type 0, 1 and 7. All text is assumed to
- be encoded in UTF-8 (or ASCII).</dd>
-</dl>
-<p class="Pp">User-entered URLs, given as argument on the command line or
- entered with <code class="Ic">load-url</code>, are intepreted with a simple
- heuristic:</p>
-<ul class="Bl-bullet Bl-compact">
- <li>if it's a proper absolute URL then use it as-is,</li>
- <li>if it starts with “./” or “/” assume it's a
- file:// URL,</li>
- <li>otherwise assume it's a Gemini URL.</li>
-</ul>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="CONFIGURATION_FILE"><a class="permalink" href="#CONFIGURATION_FILE">CONFIGURATION
- FILE</a></h1>
-<p class="Pp">During the startup, <code class="Nm">telescope</code> reads the
- configuration file at <span class="Pa">~/.config/telescope/config</span> or
- <span class="Pa">~/.telescope/config</span>.</p>
-<p class="Pp">It's possible to load a custom configuration file using the
- <code class="Fl">-c</code> flag.</p>
-<p class="Pp"><code class="Nm">telescope</code> will also load a file called
- <span class="Pa">config-TERM</span>, where “TERM” is the name
- of the terminal type (i.e. the TERM environment variable), if it exists.</p>
-<p class="Pp">The format of the configuration file is fairly flexible. The
- current line can be extended over multiple ones using a backslash
- (‘\’). Comments can be put anywhere in the file using a hash
- mark (‘#’), and extend to the end of the current line, but
- backslashes can't be used to extend comments over multiple lines.</p>
-<p class="Pp">The following constructs are available:</p>
-<dl class="Bl-tag">
- <dt id="bind"><a class="permalink" href="#bind"><code class="Ic">bind</code></a>
- <var class="Ar">map</var> <var class="Ar">key</var>
- <var class="Ar">cmd</var></dt>
- <dd>Bind <var class="Ar">key</var> to the function <var class="Ar">cmd</var>
- in the keymap <var class="Ar">map</var>. Valid values for map are
- “global-map” (i.e. when the user is viewing a page) and
- “minibuffer-map” (i.e. when the minibuffer has the focus.)
- <var class="Ar">key</var> follows the same syntax described in
- <a class="Sx" href="#DEFAULT_KEY_BINDINGS">DEFAULT KEY BINDINGS</a> and
- all the possible functions are listed in
- <a class="Sx" href="#INTERACTIVE_COMMANDS">INTERACTIVE COMMANDS</a>.</dd>
- <dt id="proxy"><a class="permalink" href="#proxy"><code class="Ic">proxy</code></a>
- <var class="Ar">proto</var> <code class="Ic">via</code>
- <var class="Ar">url</var></dt>
- <dd>Use <var class="Ar">url</var> as proxy for all URLs with protocol
- <var class="Ar">proto</var>. <var class="Ar">url</var> must be a Gemini
- URI without path, query and fragment component.</dd>
- <dt id="set"><a class="permalink" href="#set"><code class="Ic">set</code></a>
- <var class="Ar">opt</var> <span class="No">=</span>
- <var class="Ar">val</var></dt>
- <dd>Set the option <var class="Ar">opt</var> to the value
- <var class="Ar">val</var>. Valid options are:
- <p class="Pp"></p>
- <dl class="Bl-tag Bl-compact">
- <dt id="autosave"><a class="permalink" href="#autosave"><code class="Ic">autosave</code></a></dt>
- <dd>(integer) If greater than zero, save the session after the specified
- amount of seconds after some events happens (new or closed tabs,
- visited a link ...) Defaults to 20.</dd>
- <dt id="dont-wrap-pre"><a class="permalink" href="#dont-wrap-pre"><code class="Ic">dont-wrap-pre</code></a></dt>
- <dd>(integer) If nonzero, don't wrap preformatted blocks. Defaults to
- 0.</dd>
- <dt id="download-path"><a class="permalink" href="#download-path"><code class="Ic">download-path</code></a></dt>
- <dd>(string) The default download path. Defaults to
- <span class="Pa">/tmp</span>.</dd>
- <dt id="emojify-link"><a class="permalink" href="#emojify-link"><code class="Ic">emojify-link</code></a></dt>
- <dd>(integer) If nonzero, when the text of a link starts with an emoji
- followed by a space, use that emoji as line prefix. Defaults to
- 1.</dd>
- <dt id="enable-colors"><a class="permalink" href="#enable-colors"><code class="Ic">enable-colors</code></a></dt>
- <dd>(integer) If nonzero, enable colours. Defaults to 0 if
- <code class="Ev">NO_COLORS</code> is set, 1 otherwise.</dd>
- <dt id="fill-column"><a class="permalink" href="#fill-column"><code class="Ic">fill-column</code></a></dt>
- <dd>(integer) If greater than zero, lines of text will be formatted in a
- way that don't exceed the given number of columns. Defaults to
- 80.</dd>
- <dt id="fringe-ignore-offset"><a class="permalink" href="#fringe-ignore-offset"><code class="Ic">fringe-ignore-offset</code></a></dt>
- <dd>(integer) If nonzero, the fringe doesn't obey to
- <code class="Ic">olivetti-mode</code>. Defaults to 1.</dd>
- <dt id="hide-pre-blocks"><a class="permalink" href="#hide-pre-blocks"><code class="Ic">hide-pre-blocks</code></a></dt>
- <dd>(integer) If nonzero, hide by default the body of the preformatted
- blocks. Defaults to zero. <code class="Ic">push-button</code> can be
- used to toggle the visibility per-block.</dd>
- <dt id="hide-pre-closing-line"><a class="permalink" href="#hide-pre-closing-line"><code class="Ic">hide-pre-closing-line</code></a></dt>
- <dd>(integer) If nonzero, hide the closing line of preformatted blocks.
- Defaults to 0.</dd>
- <dt id="hide-pre-context"><a class="permalink" href="#hide-pre-context"><code class="Ic">hide-pre-context</code></a></dt>
- <dd>(integer) If nonzero, hide the start and end line of the preformatted
- blocks. If both hide-pre-context and hide-pre-blocks are nonzero,
- preformatted blocks are irremediably hidden. Defaults to zero.</dd>
- <dt id="new-tab-url"><a class="permalink" href="#new-tab-url"><code class="Ic">new-tab-url</code></a></dt>
- <dd>(string) URL for the new tab page. Defaults to
- “about:new”.</dd>
- <dt id="max-killed-tabs"><a class="permalink" href="#max-killed-tabs"><code class="Ic">max-killed-tabs</code></a></dt>
- <dd>(integer) The maximum number of closed tabs to keep track of, defaults
- to 10. Must be a positive number; if zero, don't save closed tabs at
- all.</dd>
- <dt id="olivetti-mode"><a class="permalink" href="#olivetti-mode"><code class="Ic">olivetti-mode</code></a></dt>
- <dd>(integer) If nonzero, enable <code class="Ic">olivetti-mode</code>
- Defaults to 1.</dd>
- <dt id="tab-bar-show"><a class="permalink" href="#tab-bar-show"><code class="Ic">tab-bar-show</code></a></dt>
- <dd>(integer) If tab-bar-show is -1 hide the tab bar permanently, if 0
- show it unconditionally. If it's 1, show the bar only when there is
- more than one tab. Defaults to 1.</dd>
- <dt id="update-title"><a class="permalink" href="#update-title"><code class="Ic">update-title</code></a></dt>
- <dd>(integer) If nonzero, set the terminal title to the page title.
- Defaults to 1.</dd>
- </dl>
- </dd>
- <dt id="style"><a class="permalink" href="#style"><code class="Ic">style</code></a>
- <var class="Ar">name</var> <var class="Ar">option</var></dt>
- <dd>Change the styling of the element identified by
- <var class="Ar">name</var>. Multiple options may be specified within curly
- braces. Valid style identifiers are:
- <div class="Bd-indent">
- <dl class="Bl-tag Bl-compact">
- <dt>line</dt>
- <dd>the area outside the lines in the body of the page.</dd>
- <dt>line.compl</dt>
- <dd>the completions.</dd>
- <dt>line.compl.current</dt>
- <dd>the current completion.</dd>
- <dt>line.help</dt>
- <dd>text in the *Help* buffer.</dd>
- <dt>line.download.ongoing</dt>
- <dd>an ongoing download</dd>
- <dt>line.download.done</dt>
- <dd>a completed download</dd>
- <dt>line.download.info</dt>
- <dd>informational text in the *Downloads* buffer.</dd>
- <dt>line.fringe</dt>
- <dd>(virtual) lines draw after the end of a buffer.</dd>
- <dt>line.text</dt>
- <dd>text lines.</dd>
- <dt>line.link</dt>
- <dd>link lines.</dd>
- <dt>line.title1..3</dt>
- <dd>headings</dd>
- <dt>line.item</dt>
- <dd>item lines.</dd>
- <dt>line.quote</dt>
- <dd>quotes.</dd>
- <dt>line.pre.start</dt>
- <dd>the heading of a preformatted block.</dd>
- <dt>line.pre</dt>
- <dd>the content of a preformatted block.</dd>
- <dt>line.pre.end</dt>
- <dd>the closing line of a preformatted block.</dd>
- <dt>download</dt>
- <dd>the download pane</dd>
- <dt>minibuffer</dt>
- <dd>the minibuffer.</dd>
- <dt>modeline</dt>
- <dd>the modeline.</dd>
- <dt>tabline</dt>
- <dd>the tabline.</dd>
- <dt>tabline.tab</dt>
- <dd>the non-focused tabs.</dd>
- <dt>tabline.current</dt>
- <dd>the focused tab.</dd>
- </dl>
- </div>
- <p class="Pp">Valid options are:</p>
- <dl class="Bl-tag">
- <dt id="attr"><a class="permalink" href="#attr"><code class="Ic">attr</code></a>
- <var class="Ar">prefix</var> [<var class="Ar">line</var>
- [<var class="Ar">trail</var>]]</dt>
- <dd>Sets the text attributes. If only one value is given,
- <var class="Ar">line</var> and <var class="Ar">trail</var> default to
- that; if two values are given then <var class="Ar">trail</var>
- defaults to <var class="Ar">prefix</var>. Each attribute is a
- comma-separated list of keywords:
- <div class="Bd-indent">
- <dl class="Bl-tag Bl-compact">
- <dt id="normal"><a class="permalink" href="#normal"><code class="Ic">normal</code></a></dt>
- <dd>no attributes.</dd>
- <dt id="standout"><a class="permalink" href="#standout"><code class="Ic">standout</code></a></dt>
- <dd>best highlighting mode for the terminal.</dd>
- <dt id="underline"><a class="permalink" href="#underline"><code class="Ic">underline</code></a></dt>
- <dd>underlines the text.</dd>
- <dt id="reverse"><a class="permalink" href="#reverse"><code class="Ic">reverse</code></a></dt>
- <dd>reverses background/foreground colors.</dd>
- <dt id="blink"><a class="permalink" href="#blink"><code class="Ic">blink</code></a></dt>
- <dd>makes the text blinking.</dd>
- <dt id="dim"><a class="permalink" href="#dim"><code class="Ic">dim</code></a></dt>
- <dd>half bright.</dd>
- <dt id="bold"><a class="permalink" href="#bold"><code class="Ic">bold</code></a></dt>
- <dd>extra bright or bold.</dd>
- </dl>
- </div>
- <p class="Pp">Only the style identifiers with the “line.”
- prefix accept up to three attributes. The other will only use the
- first one given.</p>
- </dd>
- <dt id="bg"><a class="permalink" href="#bg"><code class="Ic">bg</code></a>
- <var class="Ar">prefix</var> [<var class="Ar">line</var>
- [<var class="Ar">trail</var>]]</dt>
- <dd>Sets the background color. Follows the same behaviour as
- <code class="Ic">attr</code> regarding the optional parameters. The
- colour is one of black, red, green, yellow, blue, magenta, cyan and
- white; colour0 to colour255 (or color0 to color255) from the
- 256-colour set; default for the default colour.</dd>
- <dt id="fg"><a class="permalink" href="#fg"><code class="Ic">fg</code></a>
- <var class="Ar">prefix</var> [<var class="Ar">line</var>
- [<var class="Ar">trail</var>]]</dt>
- <dd>Sets the foreground color. It behaves just like
- <code class="Ic">bg</code>.</dd>
- <dt id="prefix"><a class="permalink" href="#prefix"><code class="Ic">prefix</code></a>
- <var class="Ar">prfx</var> [<var class="Ar">cont</var>]</dt>
- <dd>Sets the prefix for the current line type to
- <var class="Ar">prfx</var> and <var class="Ar">cont</var> as the
- prefix for the continuation lines (i.e. when a long line gets
- wrapped.) If <var class="Ar">cont</var> is not given its value will be
- the same of <var class="Ar">prfx</var>.</dd>
- </dl>
- </dd>
-</dl>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="DEFAULT_KEY_BINDINGS"><a class="permalink" href="#DEFAULT_KEY_BINDINGS">DEFAULT
- KEY BINDINGS</a></h1>
-<p class="Pp">The default key bindings are very similar to GNU Emacs, but care
- has been taken to include also bindings familiar for <a class="Xr">vi(1)</a>
- and “CUA” users. In the following examples, C-x means
- Control-x, M-x means Meta-x, where the Meta key may be either a special key
- on the keyboard or the ALT key; otherwise ESC followed by the key X works as
- well, and C-M-x means to press the key X together with both Control and
- Meta.</p>
-<p class="Pp">Keys are usually a single character, like ‘p’ or
- ‘n’, but some special keys are accepted as well.</p>
-<p class="Pp"></p>
-<div class="Bd-indent">
-<dl class="Bl-tag Bl-compact">
- <dt><up></dt>
- <dd>Up arrow</dd>
- <dt><down></dt>
- <dd>Down arrow</dd>
- <dt><left></dt>
- <dd>Left arrow</dd>
- <dt><right></dt>
- <dd>Right arrow</dd>
- <dt><prior></dt>
- <dd>Previous page/Page up</dd>
- <dt><next></dt>
- <dd>Next page/Page down</dd>
- <dt><home></dt>
- <dd>Home</dd>
- <dt><end></dt>
- <dd>End</dd>
- <dt><f0> thru <f63></dt>
- <dd>Function keys</dd>
- <dt>del or backspace</dt>
- <dd>Backspace</dd>
- <dt>esc</dt>
- <dd>Escape</dd>
- <dt>space or spc</dt>
- <dd>Space</dd>
- <dt>enter or ret</dt>
- <dd>Enter</dd>
- <dt>tab</dt>
- <dd>Tab</dd>
- <dt>backtab</dt>
- <dd>Depends on the configuration of the terminal emulator; usually shift
- tab.</dd>
-</dl>
-</div>
-<section class="Ss">
-<h2 class="Ss" id="GNU_Emacs-like_keys"><a class="permalink" href="#GNU_Emacs-like_keys">GNU
- Emacs-like keys</a></h2>
-<div class="Bd-indent">
-<dl class="Bl-tag Bl-compact">
- <dt>C-p</dt>
- <dd>previous-line</dd>
- <dt>C-n</dt>
- <dd>next-line</dd>
- <dt>C-f</dt>
- <dd>forward-char</dd>
- <dt>C-b</dt>
- <dd>backward-char</dd>
- <dt>M-{</dt>
- <dd>backward-paragraph</dd>
- <dt>M-}</dt>
- <dd>forward-paragraph</dd>
- <dt>C-a</dt>
- <dd>move-beginning-of-line</dd>
- <dt>C-e</dt>
- <dd>move-end-of-line</dd>
- <dt>M-v, M-space</dt>
- <dd>scroll-up</dd>
- <dt>C-v, space</dt>
- <dd>scroll-down</dd>
- <dt>M-<</dt>
- <dd>beginning-of-buffer</dd>
- <dt>M-></dt>
- <dd>end-of-buffer</dd>
- <dt>C-x C-c</dt>
- <dd>kill-telescope</dd>
- <dt>C-x C-w</dt>
- <dd>write-buffer</dd>
- <dt>C-g</dt>
- <dd>clear-minibuf</dd>
- <dt>M-x</dt>
- <dd>execute-extended-command</dd>
- <dt>C-c {</dt>
- <dd>dec-fill-column</dd>
- <dt>C-c }</dt>
- <dd>inc-fill-column</dd>
- <dt>C-c p</dt>
- <dd>previous-heading</dd>
- <dt>C-c n</dt>
- <dd>next-heading</dd>
- <dt>></dt>
- <dd>load-url</dd>
- <dt><</dt>
- <dd>load-current-url</dd>
- <dt>C-x C-f</dt>
- <dd>load-url</dd>
- <dt>C-x M-f</dt>
- <dd>load-current-url</dd>
- <dt>C-x o</dt>
- <dd>other-window</dd>
- <dt>C-x t 0</dt>
- <dd>tab-close</dd>
- <dt>C-x t 1</dt>
- <dd>tab-close-other</dd>
- <dt>C-x t 2</dt>
- <dd>tab-new</dd>
- <dt>C-x t o</dt>
- <dd>tab-next</dd>
- <dt>C-x t O</dt>
- <dd>tab-previous</dd>
- <dt>C-x t m</dt>
- <dd>tab-move</dd>
- <dt>C-x t M</dt>
- <dd>tab-move-to</dd>
- <dt>B, C-M-b</dt>
- <dd>previous-page</dd>
- <dt>F, C-M-f</dt>
- <dd>next-page</dd>
- <dt><f7> a</dt>
- <dd>bookmark-page</dd>
- <dt><f7> <f7></dt>
- <dd>list-bookmarks</dd>
- <dt>C-z</dt>
- <dd>suspend-telescope</dd>
-</dl>
-</div>
-</section>
-<section class="Ss">
-<h2 class="Ss" id="vi_1_-like_keys"><a class="permalink" href="#vi_1_-like_keys"><a class="Xr">vi(1)</a>-like
- keys</a></h2>
-<div class="Bd-indent">
-<dl class="Bl-tag Bl-compact">
- <dt>k</dt>
- <dd>previous-line</dd>
- <dt>j</dt>
- <dd>next-line</dd>
- <dt>l</dt>
- <dd>forward-char</dd>
- <dt>h</dt>
- <dd>backward-char</dd>
- <dt>{</dt>
- <dd>backward-paragraph</dd>
- <dt>}</dt>
- <dd>forward-paragraph</dd>
- <dt>^</dt>
- <dd>move-beginning-of-line</dd>
- <dt>$</dt>
- <dd>move-end-of-line</dd>
- <dt>K</dt>
- <dd>scroll-line-up</dd>
- <dt>J</dt>
- <dd>scroll-line-down</dd>
- <dt>g g</dt>
- <dd>beginning-of-buffer</dd>
- <dt>G</dt>
- <dd>end-of-buffer</dd>
- <dt>g D</dt>
- <dd>tab-close</dd>
- <dt>g N</dt>
- <dd>tab-new</dd>
- <dt>g t</dt>
- <dd>tab-next</dd>
- <dt>g T</dt>
- <dd>tab-previous</dd>
- <dt>g M-t</dt>
- <dd>tab-move</dd>
- <dt>g M-T</dt>
- <dd>tab-move-to</dd>
- <dt>H</dt>
- <dd>previous-page</dd>
- <dt>L</dt>
- <dd>next-page</dd>
- <dt>u</dt>
- <dd>tab-undo-close</dd>
- <dt>q</dt>
- <dd>kill-telescope</dd>
- <dt>ESC</dt>
- <dd>clear-minibuf</dd>
- <dt>:</dt>
- <dd>execute-extended-command</dd>
-</dl>
-</div>
-</section>
-<section class="Ss">
-<h2 class="Ss" id="CUA-like_keys"><a class="permalink" href="#CUA-like_keys">CUA-like
- keys</a></h2>
-<div class="Bd-indent">
-<dl class="Bl-tag Bl-compact">
- <dt><up></dt>
- <dd>previous-line</dd>
- <dt><down></dt>
- <dd>next-line</dd>
- <dt><right></dt>
- <dd>forward-char</dd>
- <dt><left></dt>
- <dd>backward-char</dd>
- <dt><home></dt>
- <dd>move-beginning-of-line</dd>
- <dt><end></dt>
- <dd>move-end-of-line</dd>
- <dt><prior></dt>
- <dd>scroll-up</dd>
- <dt><next></dt>
- <dd>scroll-down</dd>
- <dt>C-w</dt>
- <dd>tab-close</dd>
- <dt>C-t</dt>
- <dd>tab-new</dd>
- <dt>M-<prior></dt>
- <dd>tab-previous</dd>
- <dt>M-<next></dt>
- <dd>tab-next</dd>
- <dt>del</dt>
- <dd>previous-page</dd>
- <dt>M-<left></dt>
- <dd>previous-page</dd>
- <dt>M-<right></dt>
- <dd>next-page</dd>
- <dt><f5></dt>
- <dd>reload-page</dd>
- <dt>r</dt>
- <dd>reload-page</dd>
-</dl>
-</div>
-</section>
-<section class="Ss">
-<h2 class="Ss" id="Neither_Emacs_nor_vi_specific"><a class="permalink" href="#Neither_Emacs_nor_vi_specific">Neither
- Emacs nor vi specific</a></h2>
-<div class="Bd-indent">
-<dl class="Bl-tag Bl-compact">
- <dt><f1></dt>
- <dd>toggle-help</dd>
- <dt>enter</dt>
- <dd>push-button</dd>
- <dt>M-enter</dt>
- <dd>push-button-new-tab</dd>
- <dt>M-tab</dt>
- <dd>previous-button</dd>
- <dt>backtab</dt>
- <dd>previous-button</dd>
- <dt>tab</dt>
- <dd>next-button</dd>
- <dt>M-t</dt>
- <dd>tab-select</dd>
- <dt>[</dt>
- <dd>tab-previous</dd>
- <dt>]</dt>
- <dd>tab-next</dd>
- <dt>M-[</dt>
- <dd>tab-move-to</dd>
- <dt>M-]</dt>
- <dd>tab-move</dd>
- <dt>M-l</dt>
- <dd>link-select</dd>
- <dt>M-/</dt>
- <dd>swiper</dd>
- <dt>M-r</dt>
- <dd>reply-last-input</dd>
-</dl>
-</div>
-</section>
-<section class="Ss">
-<h2 class="Ss" id="Minibuffer-specific_keys"><a class="permalink" href="#Minibuffer-specific_keys">Minibuffer-specific
- keys</a></h2>
-<div class="Bd-indent">
-<dl class="Bl-tag Bl-compact">
- <dt>enter</dt>
- <dd>mini-complete-and-exit</dd>
- <dt>C-g</dt>
- <dd>mini-abort</dd>
- <dt>ESC</dt>
- <dd>mini-abort</dd>
- <dt>C-d</dt>
- <dd>mini-delete-char</dd>
- <dt>del</dt>
- <dd>mini-delete-backward-char</dd>
- <dt>backspace</dt>
- <dd>mini-delete-backward-char</dd>
- <dt>C-h</dt>
- <dd>mini-delete-backward-char</dd>
- <dt>C-b</dt>
- <dd>backward-char</dd>
- <dt>C-f</dt>
- <dd>forward-char</dd>
- <dt><left></dt>
- <dd>backward-char</dd>
- <dt><right></dt>
- <dd>forward-char</dd>
- <dt>C-e</dt>
- <dd>move-end-of-line</dd>
- <dt>C-a</dt>
- <dd>move-beginning-of-line</dd>
- <dt><end></dt>
- <dd>move-end-of-line</dd>
- <dt><home></dt>
- <dd>move-beginning-of-line</dd>
- <dt>C-k</dt>
- <dd>mini-kill-line</dd>
- <dt>C-u</dt>
- <dd>mini-kill-whole-line</dd>
- <dt>M-p</dt>
- <dd>mini-previous-history-element</dd>
- <dt>M-n</dt>
- <dd>mini-next-history-element</dd>
- <dt>C-p</dt>
- <dd>previous-completion</dd>
- <dt>C-n</dt>
- <dd>next-completion</dd>
- <dt><up></dt>
- <dd>previous-completion</dd>
- <dt><down></dt>
- <dd>next-completion</dd>
- <dt>tab</dt>
- <dd>insert-current-candidate</dd>
- <dt>M-<</dt>
- <dd>mini-goto-beginning</dd>
- <dt>M-></dt>
- <dd>mini-goto-end</dd>
-</dl>
-</div>
-</section>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="INTERACTIVE_COMMANDS"><a class="permalink" href="#INTERACTIVE_COMMANDS">INTERACTIVE
- COMMANDS</a></h1>
-<p class="Pp">Follows the documentation for the interactive commands. These
- commands can be bound to a key or executed with
- <code class="Ic">execute-extended-command</code>.</p>
-<section class="Ss">
-<h2 class="Ss" id="Movement_commands"><a class="permalink" href="#Movement_commands">Movement
- commands</a></h2>
-<dl class="Bl-tag Bl-compact">
- <dt id="backward-char"><a class="permalink" href="#backward-char"><code class="Ic">backward-char</code></a></dt>
- <dd>Move point one character backward.</dd>
- <dt id="backward-paragraph"><a class="permalink" href="#backward-paragraph"><code class="Ic">backward-paragraph</code></a></dt>
- <dd>Move point one paragraph backward.</dd>
- <dt id="beginning-of-buffer"><a class="permalink" href="#beginning-of-buffer"><code class="Ic">beginning-of-buffer</code></a></dt>
- <dd>Move point to the beginning of the buffer.</dd>
- <dt id="end-of-buffer"><a class="permalink" href="#end-of-buffer"><code class="Ic">end-of-buffer</code></a></dt>
- <dd>Move point to the end of the buffer.</dd>
- <dt id="forward-char"><a class="permalink" href="#forward-char"><code class="Ic">forward-char</code></a></dt>
- <dd>Move point one character forward.</dd>
- <dt id="forward-paragraph"><a class="permalink" href="#forward-paragraph"><code class="Ic">forward-paragraph</code></a></dt>
- <dd>Move point one paragraph forward.</dd>
- <dt id="insert-current-candidate"><a class="permalink" href="#insert-current-candidate"><code class="Ic">insert-current-candidate</code></a></dt>
- <dd>Copy the current selection text as minibuffer input.</dd>
- <dt id="move-beginning-of-line"><a class="permalink" href="#move-beginning-of-line"><code class="Ic">move-beginning-of-line</code></a></dt>
- <dd>Move point at the beginning of the current (visual) line.</dd>
- <dt id="move-end-of-line"><a class="permalink" href="#move-end-of-line"><code class="Ic">move-end-of-line</code></a></dt>
- <dd>Move point at the end of the current (visual) line.</dd>
- <dt id="next-button"><a class="permalink" href="#next-button"><code class="Ic">next-button</code></a></dt>
- <dd>Move point to the next link.</dd>
- <dt id="next-completion"><a class="permalink" href="#next-completion"><code class="Ic">next-completion</code></a></dt>
- <dd>Select the next completion.</dd>
- <dt id="next-heading"><a class="permalink" href="#next-heading"><code class="Ic">next-heading</code></a></dt>
- <dd>Move point to the next heading.</dd>
- <dt id="next-line"><a class="permalink" href="#next-line"><code class="Ic">next-line</code></a></dt>
- <dd>Move point to the next (visual) line, in the same column if possible.</dd>
- <dt id="previous-button"><a class="permalink" href="#previous-button"><code class="Ic">previous-button</code></a></dt>
- <dd>Move point to the previous link.</dd>
- <dt id="previous-completion"><a class="permalink" href="#previous-completion"><code class="Ic">previous-completion</code></a></dt>
- <dd>Select the previous completion.</dd>
- <dt id="previous-heading"><a class="permalink" href="#previous-heading"><code class="Ic">previous-heading</code></a></dt>
- <dd>Move point to the previous heading.</dd>
- <dt id="previous-line"><a class="permalink" href="#previous-line"><code class="Ic">previous-line</code></a></dt>
- <dd>Move point to the previous (visual) line.</dd>
-</dl>
-</section>
-<section class="Ss">
-<h2 class="Ss" id="Bookmark-related_commands"><a class="permalink" href="#Bookmark-related_commands">Bookmark-related
- commands</a></h2>
-<dl class="Bl-tag Bl-compact">
- <dt id="bookmark-page"><a class="permalink" href="#bookmark-page"><code class="Ic">bookmark-page</code></a></dt>
- <dd>Save a page in the bookmark file. It preloads the minibuffer with the
- current URL.</dd>
- <dt id="list-bookmarks"><a class="permalink" href="#list-bookmarks"><code class="Ic">list-bookmarks</code></a></dt>
- <dd>Load the bookmarks page.</dd>
-</dl>
-</section>
-<section class="Ss">
-<h2 class="Ss" id="Tab-related_commands"><a class="permalink" href="#Tab-related_commands">Tab-related
- commands</a></h2>
-<dl class="Bl-tag Bl-compact">
- <dt id="tab-close"><a class="permalink" href="#tab-close"><code class="Ic">tab-close</code></a></dt>
- <dd>Close the current tab.</dd>
- <dt id="tab-close-other"><a class="permalink" href="#tab-close-other"><code class="Ic">tab-close-other</code></a></dt>
- <dd>Close all tabs but the current one.</dd>
- <dt id="tab-move"><a class="permalink" href="#tab-move"><code class="Ic">tab-move</code></a></dt>
- <dd>Move the current tab after the next one, wrapping around if needed.</dd>
- <dt id="tab-move-to"><a class="permalink" href="#tab-move-to"><code class="Ic">tab-move-to</code></a></dt>
- <dd>Move the current tab before the previous one, wrapping around if
- needed.</dd>
- <dt id="tab-new"><a class="permalink" href="#tab-new"><code class="Ic">tab-new</code></a></dt>
- <dd>Open a new tab.</dd>
- <dt id="tab-next"><a class="permalink" href="#tab-next"><code class="Ic">tab-next</code></a></dt>
- <dd>Focus next tab, wrapping around eventually.</dd>
- <dt id="tab-previous"><a class="permalink" href="#tab-previous"><code class="Ic">tab-previous</code></a></dt>
- <dd>Focus the previous tab, wrapping around eventually.</dd>
- <dt id="tab-select"><a class="permalink" href="#tab-select"><code class="Ic">tab-select</code></a></dt>
- <dd>Switch to a tab using the minibuffer.</dd>
- <dt id="tab-undo-close"><a class="permalink" href="#tab-undo-close"><code class="Ic">tab-undo-close</code></a></dt>
- <dd>Re-open the most recently closed tab, if any.</dd>
-</dl>
-</section>
-<section class="Ss">
-<h2 class="Ss" id="Misc_commands"><a class="permalink" href="#Misc_commands">Misc
- commands</a></h2>
-<dl class="Bl-tag Bl-compact">
- <dt id="cache-info"><a class="permalink" href="#cache-info"><code class="Ic">cache-info</code></a></dt>
- <dd>Show cache stats.</dd>
- <dt id="clear-minibuf"><a class="permalink" href="#clear-minibuf"><code class="Ic">clear-minibuf</code></a></dt>
- <dd>Clear the echo area.</dd>
- <dt id="dec-fill-column"><a class="permalink" href="#dec-fill-column"><code class="Ic">dec-fill-column</code></a></dt>
- <dd>Decrement fill-column by two.</dd>
- <dt id="execute-extended-command"><a class="permalink" href="#execute-extended-command"><code class="Ic">execute-extended-command</code></a></dt>
- <dd>Execute an internal command.</dd>
- <dt id="kill-telescope"><a class="permalink" href="#kill-telescope"><code class="Ic">kill-telescope</code></a></dt>
- <dd>Quit <code class="Nm">telescope</code>.</dd>
- <dt id="inc-fill-column"><a class="permalink" href="#inc-fill-column"><code class="Ic">inc-fill-column</code></a></dt>
- <dd>Increment fill-column by two.</dd>
- <dt id="link-select"><a class="permalink" href="#link-select"><code class="Ic">link-select</code></a></dt>
- <dd>Select and visit a link using the minibuffer.</dd>
- <dt id="load-current-url"><a class="permalink" href="#load-current-url"><code class="Ic">load-current-url</code></a></dt>
- <dd>Edit the current URL.</dd>
- <dt id="load-url"><a class="permalink" href="#load-url"><code class="Ic">load-url</code></a></dt>
- <dd>Prompt for an URL.</dd>
- <dt id="next-page"><a class="permalink" href="#next-page"><code class="Ic">next-page</code></a></dt>
- <dd>Go forward in the page history.</dd>
- <dt id="olivetti-mode~2"><a class="permalink" href="#olivetti-mode~2"><code class="Ic">olivetti-mode</code></a></dt>
- <dd>Toggle olivetti mode (i.e. horizontal centering of the lines of the
- window.)</dd>
- <dt id="other-window"><a class="permalink" href="#other-window"><code class="Ic">other-window</code></a></dt>
- <dd>Select the other window.</dd>
- <dt id="previous-page"><a class="permalink" href="#previous-page"><code class="Ic">previous-page</code></a></dt>
- <dd>Go backward in the page history.</dd>
- <dt id="push-button"><a class="permalink" href="#push-button"><code class="Ic">push-button</code></a></dt>
- <dd>Follow link at point, or toggle the visibility of the following
- preformatted block if called when the cursor is on the heading of the
- block.</dd>
- <dt id="push-button-new-tab"><a class="permalink" href="#push-button-new-tab"><code class="Ic">push-button-new-tab</code></a></dt>
- <dd>Follow link at point in a new tab.</dd>
- <dt id="redraw"><a class="permalink" href="#redraw"><code class="Ic">redraw</code></a></dt>
- <dd>Redraw the screen, useful if some background program messed up the
- display.</dd>
- <dt id="reload-page"><a class="permalink" href="#reload-page"><code class="Ic">reload-page</code></a></dt>
- <dd>Reload the current page.</dd>
- <dt id="reply-last-input"><a class="permalink" href="#reply-last-input"><code class="Ic">reply-last-input</code></a></dt>
- <dd>Reply the last input request.</dd>
- <dt id="scroll-down"><a class="permalink" href="#scroll-down"><code class="Ic">scroll-down</code></a></dt>
- <dd>Scroll down by one visual page.</dd>
- <dt id="scroll-line-down"><a class="permalink" href="#scroll-line-down"><code class="Ic">scroll-line-down</code></a></dt>
- <dd>Scroll down by one line.</dd>
- <dt id="scroll-line-up"><a class="permalink" href="#scroll-line-up"><code class="Ic">scroll-line-up</code></a></dt>
- <dd>Scroll up by one line.</dd>
- <dt id="scroll-up"><a class="permalink" href="#scroll-up"><code class="Ic">scroll-up</code></a></dt>
- <dd>Scroll up by one visual page.</dd>
- <dt id="suspend-telescope"><a class="permalink" href="#suspend-telescope"><code class="Ic">suspend-telescope</code></a></dt>
- <dd>Suspend the current <code class="Nm">telescope</code> session.</dd>
- <dt id="swiper"><a class="permalink" href="#swiper"><code class="Ic">swiper</code></a></dt>
- <dd>Jump to a line using the minibuffer.</dd>
- <dt id="toc"><a class="permalink" href="#toc"><code class="Ic">toc</code></a></dt>
- <dd>Jump to a heading using the minibuffer.</dd>
- <dt id="toggle-help"><a class="permalink" href="#toggle-help"><code class="Ic">toggle-help</code></a></dt>
- <dd>Toggle side window with help about available keys and their associated
- interactive command.</dd>
- <dt id="toggle-pre-wrap"><a class="permalink" href="#toggle-pre-wrap"><code class="Ic">toggle-pre-wrap</code></a></dt>
- <dd>Toggle the wrapping of preformatted blocks.</dd>
- <dt id="write-buffer"><a class="permalink" href="#write-buffer"><code class="Ic">write-buffer</code></a></dt>
- <dd>Save the current buffer to the disk.</dd>
-</dl>
-</section>
-<section class="Ss">
-<h2 class="Ss" id="Minibuffer_commands"><a class="permalink" href="#Minibuffer_commands">Minibuffer
- commands</a></h2>
-<dl class="Bl-tag Bl-compact">
- <dt id="mini-abort"><a class="permalink" href="#mini-abort"><code class="Ic">mini-abort</code></a></dt>
- <dd>Abort the current minibuffer action.</dd>
- <dt id="mini-complete-and-exit"><a class="permalink" href="#mini-complete-and-exit"><code class="Ic">mini-complete-and-exit</code></a></dt>
- <dd>Complete the current minibuffer action.</dd>
- <dt id="mini-delete-backward-char"><a class="permalink" href="#mini-delete-backward-char"><code class="Ic">mini-delete-backward-char</code></a></dt>
- <dd>Delete the character before the point.</dd>
- <dt id="mini-delete-char"><a class="permalink" href="#mini-delete-char"><code class="Ic">mini-delete-char</code></a></dt>
- <dd>Delete the character after the point.</dd>
- <dt id="mini-goto-beginning"><a class="permalink" href="#mini-goto-beginning"><code class="Ic">mini-goto-beginning</code></a></dt>
- <dd>Select the first completion, if any.</dd>
- <dt id="mini-goto-end"><a class="permalink" href="#mini-goto-end"><code class="Ic">mini-goto-end</code></a></dt>
- <dd>Select the last completion, if any.</dd>
- <dt id="mini-kill-line"><a class="permalink" href="#mini-kill-line"><code class="Ic">mini-kill-line</code></a></dt>
- <dd>Delete from point until the end of the line.</dd>
- <dt id="mini-kill-whole-line"><a class="permalink" href="#mini-kill-whole-line"><code class="Ic">mini-kill-whole-line</code></a></dt>
- <dd>Delete the whole line.</dd>
- <dt id="mini-next-history-element"><a class="permalink" href="#mini-next-history-element"><code class="Ic">mini-next-history-element</code></a></dt>
- <dd>Load the previous history element.</dd>
- <dt id="mini-previous-history-element"><a class="permalink" href="#mini-previous-history-element"><code class="Ic">mini-previous-history-element</code></a></dt>
- <dd>Load the next history element.</dd>
-</dl>
-</section>
-<section class="Ss">
-<h2 class="Ss" id="Aliases"><a class="permalink" href="#Aliases">Aliases</a></h2>
-<p class="Pp">The following aliases are available during
- <code class="Ic">execute-extended-command</code>:</p>
-<dl class="Bl-tag Bl-compact">
- <dt id="open"><a class="permalink" href="#open"><code class="Ic">open</code></a></dt>
- <dd><a class="permalink" href="#load-url~2"><code class="Ic" id="load-url~2">load-url</code></a></dd>
- <dt id="tabn"><a class="permalink" href="#tabn"><code class="Ic">tabn</code></a></dt>
- <dd><a class="permalink" href="#tab-next~2"><code class="Ic" id="tab-next~2">tab-next</code></a></dd>
- <dt id="tabnew"><a class="permalink" href="#tabnew"><code class="Ic">tabnew</code></a></dt>
- <dd><a class="permalink" href="#tab-new~2"><code class="Ic" id="tab-new~2">tab-new</code></a></dd>
- <dt id="tabp"><a class="permalink" href="#tabp"><code class="Ic">tabp</code></a></dt>
- <dd><a class="permalink" href="#tab-previous~2"><code class="Ic" id="tab-previous~2">tab-previous</code></a></dd>
- <dt id="q"><a class="permalink" href="#q"><code class="Ic">q</code></a>
- <span class="No">and</span> <code class="Ic">wq</code></dt>
- <dd><a class="permalink" href="#kill-telescope~2"><code class="Ic" id="kill-telescope~2">kill-telescope</code></a></dd>
- <dt id="w"><a class="permalink" href="#w"><code class="Ic">w</code></a></dt>
- <dd><a class="permalink" href="#write-buffer~2"><code class="Ic" id="write-buffer~2">write-buffer</code></a></dd>
-</dl>
-</section>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="ENVIRONMENT"><a class="permalink" href="#ENVIRONMENT">ENVIRONMENT</a></h1>
-<p class="Pp">When <code class="Nm">telescope</code> is started, it inspects the
- following environment variables:</p>
-<dl class="Bl-tag">
- <dt id="HOME"><a class="permalink" href="#HOME"><code class="Ev">HOME</code></a></dt>
- <dd>The user's login directory.</dd>
- <dt id="NO_COLORS"><a class="permalink" href="#NO_COLORS"><code class="Ev">NO_COLORS</code></a></dt>
- <dd>To decide whether to use colors or not. The content of the variable
- doesn't matter.</dd>
- <dt id="TERM"><a class="permalink" href="#TERM"><code class="Ev">TERM</code></a></dt>
- <dd>The user's terminal name.</dd>
- <dt id="XDG_CACHE_HOME"><a class="permalink" href="#XDG_CACHE_HOME"><code class="Ev">XDG_CACHE_HOME</code></a>,
- <code class="Ev">XDG_CONFIG_HOME</code>,
- <code class="Ev">XDG_DATA_HOME</code></dt>
- <dd>If defined can alter the default location of the files used.</dd>
-</dl>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="FILES"><a class="permalink" href="#FILES">FILES</a></h1>
-<p class="Pp">By default <code class="Nm">telescope</code> follows the XDG Base
- Directory Specification. However, if <span class="Pa">~/.telescope</span>
- exists, XDG is ignored and all the files are stored inside it. The usage of
- <code class="Ev">XDG_CACHE_HOME</code>,
- <code class="Ev">XDG_CONFIG_HOME</code> and
- <code class="Ev">XDG_DATA_HOME</code> can further alter the location of
- these files.</p>
-<p class="Pp"></p>
-<dl class="Bl-tag Bl-compact">
- <dt><span class="Pa">~/.config/telescope/config</span></dt>
- <dd>Default configuration file.</dd>
- <dt><span class="Pa">~/.local/share/telescope/pages/about_*.gmi</span></dt>
- <dd>Overrides for built-in about: pages.</dd>
- <dt><span class="Pa">~/.local/share/telescope/bookmarks.gmi</span></dt>
- <dd>Bookmarks file.</dd>
- <dt><span class="Pa">~/.local/share/telescope/known_hosts</span></dt>
- <dd>Hash of the certificates for all the known hosts. Each line contains three
- fields: hostname with optional port number, hash of the certificate and a
- numeric flag.</dd>
- <dt><span class="Pa">~/.cache/telescope/lock</span></dt>
- <dd>Lock file used to prevent multiple instance of
- <code class="Nm">telescope</code> from running at the same time.</dd>
- <dt><span class="Pa">~/.cache/telescope/session</span></dt>
- <dd>The list of tabs from the last session.</dd>
-</dl>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="EXAMPLES"><a class="permalink" href="#EXAMPLES">EXAMPLES</a></h1>
-<p class="Pp">It's possible to browse “the small web” (i.e. simple
- websites) by using programs like the duckling-proxy by defining a proxy in
- <span class="Pa">~/.config/telescope/config</span>:</p>
-<div class="Bd Pp Bd-indent Li">
-<pre>proxy http via "gemini://127.0.0.1:1965"
-proxy https via "gemini://127.0.0.1:1965"</pre>
-</div>
-<p class="Pp">To load <code class="Nm">telescope</code> without any
- configuration</p>
-<div class="Bd Pp Bd-indent Li">
-<pre>telescope -c /dev/null</pre>
-</div>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="STANDARDS"><a class="permalink" href="#STANDARDS">STANDARDS</a></h1>
-<p class="Pp"><cite class="Rs"><i class="RsB">XDG Base Directory
- Specification</i>,
- <a class="RsU" href="https://specifications.freedesktop.org/basedir-spec/latest/">https://specifications.freedesktop.org/basedir-spec/latest/</a>.</cite></p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="ACKNOWLEDGEMENTS"><a class="permalink" href="#ACKNOWLEDGEMENTS">ACKNOWLEDGEMENTS</a></h1>
-<p class="Pp">The “Trust, but verify (where appropriate)” TOFU
- scheme was firstly suggested by thfr:
- <a class="Lk" href="gemini://thfr.info/gemini/modified-trust-verify.gmi">gemini://thfr.info/gemini/modified-trust-verify.gmi</a>.</p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1>
-<p class="Pp">The <code class="Nm">telescope</code> program was written by
- <span class="An">Omar Polo</span>
- <<a class="Mt" href="mailto:op@omarpolo.com">op@omarpolo.com</a>>.</p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="CAVEATS"><a class="permalink" href="#CAVEATS">CAVEATS</a></h1>
-<p class="Pp"><code class="Nm">telescope</code> assumes a UTF-8 environment and
- doesn't try to cope with other encodings. This can cause strange rendering
- issues if you're lucky, or possibly weird thing happening depending on your
- locale and terminal emulator.</p>
-<p class="Pp">The algorithm used for text-wrapping is naive and doesn't really
- work for languages that make heavily use of glyphs composed by multiple
- UNICODE codepoints.</p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="BUGS"><a class="permalink" href="#BUGS">BUGS</a></h1>
-<p class="Pp">There's no UI for out-of-band certificates validation.</p>
-</section>
-</div>
-<table class="foot">
- <tr>
- <td class="foot-date">January 5, 2022</td>
- <td class="foot-os">OpenBSD 7.1</td>
- </tr>
-</table>
-</body>
-</html>
blob - /dev/null
blob + 7a59d27fc1b4d5d758b240672c3ac74a29ac4652 (mode 644)
--- /dev/null
+++ site/header.html
+<!doctype html>
+<html lang="en">
+ <head>
+ <title>TITLE | telescope</title>
+ <meta charset="utf8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <link rel="stylesheet" href="style.css" />
+ </head>
+ <body>
blob - 01d2fb8b21be50b1f0496b8d8736c9f2b2937516 (mode 644)
blob + /dev/null
--- site/telescope.1.txt
+++ /dev/null
-TELESCOPE(1) General Commands Manual TELESCOPE(1)
-
-NAME
- telescope multi-protocol browser
-
-SYNOPSIS
- telescope [-ChnSv] [-c config] [URL]
-
-DESCRIPTION
- telescope is an interactive browser that supports the Finger, Gemini and
- Gopher protocols. telescope features tabs, a minibuffer, interactive
- completions, bookmarks and out-of-band TOFU verification.
-
- The arguments are as follows:
-
- -C, --colours Show all available colors and exit. This option can also
- be spelled --colors.
-
- -c config Specify an alternative configuration file. By default
- ~/.config/telescope/config is loaded.
-
- -h, --help Display version, usage and exit.
-
- -n Configtest mode. Only check the configuration file for
- validity.
-
- -S, --safe Safe (or sandbox) mode. Prevent telescope from
- writing files to the disk and to acquire the lock,
- allowing to run multiple instances at the same time.
- telescope still loads the session file and the custom
- about pages.
-
- -v, --version Display version and exit.
-
-UI CONCEPTS
- telescope interface is divided into four areas: the tabline, the body,
- the modeline and the echoarea/minibuffer.
-
- The tabline is always at the top of the screen and displays the tabs
- separated by a vertical line. When there are more tabs than the size of
- the window allow to display, the characters < or > are shown at the
- start/end of the tabline to indicate that there are more tabs in that
- direction.
-
- The body occupies the majority of the visible area. It contains the
- current page and optionally a side window.
-
- The modeline is the second to last row of the screen. It shows some
- information about the page: a spinner when the page is loading, the trust
- level, the document type, the scroll offset and the URL.
-
- The echoarea is usually the last line of the screen. Messages are often
- showed there, and link addresses too. The echoarea is also used to
- obtain input from the user. When commands like swiper or link-select are
- invoked, the minibuffer area grows to show possible completions.
-
-TOFU
- telescope aims to use the Trust, but Verify (where appropriate)
- approach for TOFU (Trust On First Use). The idea is to define three
- level of verification for a certificate:
-
- untrusted (!) the server fingerprint does NOT match the stored
- value.
-
- trusted (v) the server fingerprint matches the store one.
-
- verified (V) the fingerprint matches and has been verified out-of-
- band.
-
- The trust level of the page is indicated in the modeline with the
- indicated character.
-
- Most of the time the trusted level is enough, but where is appropriate
- users should be able to verify out-of-band the certificate.
-
- At the moment, there is no built-in support for an out-of-band
- verification though.
-
-SUPPORTED PROTOCOLS
- The following protocols are supported:
-
- about: About pages are telescope internal page. See about:about for
- a list of all these pages.
-
- file:// File types know to telescope, such as .gmi, .gemini, .txt,
- .md, .markdown, .diff or .patch, can be viewed inside the
- application. Types of local files are detected solely based
- on the file extension. On some systems, such as OpenBSD, only
- files inside special directories (like /tmp or ~/Downloads)
- are available.
-
- finger:// Finger URLs are interpreted as follows:
- the host is determined by the host name portion of the URL
- if the user portion of the URL is provided, it's
- interpreted as the user to finger, otherwise the path
- component will be used
- thus finger://user@hostname and finger://hostname/user are
- treated as the same URL.
-
- gemini:// Gemini is fully supported, with the exception of client-
- certificates.
-
- gopher:// Gopher support is limited to items type 0, 1 and 7. All text
- is assumed to be encoded in UTF-8 (or ASCII).
-
- User-entered URLs, given as argument on the command line or entered with
- load-url, are intepreted with a simple heuristic:
- if it's a proper absolute URL then use it as-is,
- if it starts with ./ or / assume it's a file:// URL,
- otherwise assume it's a Gemini URL.
-
-CONFIGURATION FILE
- During the startup, telescope reads the configuration file at
- ~/.config/telescope/config or ~/.telescope/config.
-
- It's possible to load a custom configuration file using the -c flag.
-
- telescope will also load a file called config-TERM, where TERM is the
- name of the terminal type (i.e. the TERM environment variable), if it
- exists.
-
- The format of the configuration file is fairly flexible. The current
- line can be extended over multiple ones using a backslash (\).
- Comments can be put anywhere in the file using a hash mark (#), and
- extend to the end of the current line, but backslashes can't be used to
- extend comments over multiple lines.
-
- The following constructs are available:
-
- bind map key cmd
- Bind key to the function cmd in the keymap map. Valid values for
- map are global-map (i.e. when the user is viewing a page) and
- minibuffer-map (i.e. when the minibuffer has the focus.) key
- follows the same syntax described in DEFAULT KEY BINDINGS and all
- the possible functions are listed in INTERACTIVE COMMANDS.
-
- proxy proto via url
- Use url as proxy for all URLs with protocol proto. url must be a
- Gemini URI without path, query and fragment component.
-
- set opt = val
- Set the option opt to the value val. Valid options are:
-
- autosave (integer) If greater than zero, save the session
- after the specified amount of seconds after some
- events happens (new or closed tabs, visited a link
- ...) Defaults to 20.
- dont-wrap-pre (integer) If nonzero, don't wrap preformatted
- blocks. Defaults to 0.
- download-path (string) The default download path. Defaults to
- /tmp.
- emojify-link (integer) If nonzero, when the text of a link
- starts with an emoji followed by a space, use that
- emoji as line prefix. Defaults to 1.
- enable-colors (integer) If nonzero, enable colours. Defaults to
- 0 if NO_COLORS is set, 1 otherwise.
- fill-column (integer) If greater than zero, lines of text will
- be formatted in a way that don't exceed the given
- number of columns. Defaults to 80.
- fringe-ignore-offset
- (integer) If nonzero, the fringe doesn't obey to
- olivetti-mode. Defaults to 1.
- hide-pre-blocks
- (integer) If nonzero, hide by default the body of
- the preformatted blocks. Defaults to zero.
- push-button can be used to toggle the visibility
- per-block.
- hide-pre-closing-line
- (integer) If nonzero, hide the closing line of
- preformatted blocks. Defaults to 0.
- hide-pre-context
- (integer) If nonzero, hide the start and end line
- of the preformatted blocks. If both hide-pre-
- context and hide-pre-blocks are nonzero,
- preformatted blocks are irremediably hidden.
- Defaults to zero.
- new-tab-url (string) URL for the new tab page. Defaults to
- about:new.
- max-killed-tabs
- (integer) The maximum number of closed tabs to
- keep track of, defaults to 10. Must be a positive
- number; if zero, don't save closed tabs at all.
- olivetti-mode (integer) If nonzero, enable olivetti-mode
- Defaults to 1.
- tab-bar-show (integer) If tab-bar-show is -1 hide the tab bar
- permanently, if 0 show it unconditionally. If
- it's 1, show the bar only when there is more than
- one tab. Defaults to 1.
- update-title (integer) If nonzero, set the terminal title to
- the page title. Defaults to 1.
-
- style name option
- Change the styling of the element identified by name. Multiple
- options may be specified within curly braces. Valid style
- identifiers are:
- line the area outside the lines in the
- body of the page.
- line.compl the completions.
- line.compl.current the current completion.
- line.help text in the *Help* buffer.
- line.download.ongoing an ongoing download
- line.download.done a completed download
- line.download.info informational text in the
- *Downloads* buffer.
- line.fringe (virtual) lines draw after the end
- of a buffer.
- line.text text lines.
- line.link link lines.
- line.title1..3 headings
- line.item item lines.
- line.quote quotes.
- line.pre.start the heading of a preformatted block.
- line.pre the content of a preformatted block.
- line.pre.end the closing line of a preformatted
- block.
- download the download pane
- minibuffer the minibuffer.
- modeline the modeline.
- tabline the tabline.
- tabline.tab the non-focused tabs.
- tabline.current the focused tab.
-
- Valid options are:
-
- attr prefix [line [trail]]
- Sets the text attributes. If only one value is given,
- line and trail default to that; if two values are given
- then trail defaults to prefix. Each attribute is a
- comma-separated list of keywords:
- normal no attributes.
- standout best highlighting mode for the terminal.
- underline underlines the text.
- reverse reverses background/foreground colors.
- blink makes the text blinking.
- dim half bright.
- bold extra bright or bold.
-
- Only the style identifiers with the line. prefix accept
- up to three attributes. The other will only use the
- first one given.
-
- bg prefix [line [trail]]
- Sets the background color. Follows the same behaviour as
- attr regarding the optional parameters. The colour is
- one of black, red, green, yellow, blue, magenta, cyan and
- white; colour0 to colour255 (or color0 to color255) from
- the 256-colour set; default for the default colour.
-
- fg prefix [line [trail]]
- Sets the foreground color. It behaves just like bg.
-
- prefix prfx [cont]
- Sets the prefix for the current line type to prfx and
- cont as the prefix for the continuation lines (i.e. when
- a long line gets wrapped.) If cont is not given its value
- will be the same of prfx.
-
-DEFAULT KEY BINDINGS
- The default key bindings are very similar to GNU Emacs, but care has been
- taken to include also bindings familiar for vi(1) and CUA users. In
- the following examples, C-x means Control-x, M-x means Meta-x, where the
- Meta key may be either a special key on the keyboard or the ALT key;
- otherwise ESC followed by the key X works as well, and C-M-x means to
- press the key X together with both Control and Meta.
-
- Keys are usually a single character, like p or n, but some special
- keys are accepted as well.
-
- <up> Up arrow
- <down> Down arrow
- <left> Left arrow
- <right> Right arrow
- <prior> Previous page/Page up
- <next> Next page/Page down
- <home> Home
- <end> End
- <f0> thru <f63> Function keys
- del or backspace Backspace
- esc Escape
- space or spc Space
- enter or ret Enter
- tab Tab
- backtab Depends on the configuration of the terminal
- emulator; usually shift tab.
-
- GNU Emacs-like keys
- C-p previous-line
- C-n next-line
- C-f forward-char
- C-b backward-char
- M-{ backward-paragraph
- M-} forward-paragraph
- C-a move-beginning-of-line
- C-e move-end-of-line
- M-v, M-space scroll-up
- C-v, space scroll-down
- M-< beginning-of-buffer
- M-> end-of-buffer
- C-x C-c kill-telescope
- C-x C-w write-buffer
- C-g clear-minibuf
- M-x execute-extended-command
- C-c { dec-fill-column
- C-c } inc-fill-column
- C-c p previous-heading
- C-c n next-heading
- > load-url
- < load-current-url
- C-x C-f load-url
- C-x M-f load-current-url
- C-x o other-window
- C-x t 0 tab-close
- C-x t 1 tab-close-other
- C-x t 2 tab-new
- C-x t o tab-next
- C-x t O tab-previous
- C-x t m tab-move
- C-x t M tab-move-to
- B, C-M-b previous-page
- F, C-M-f next-page
- <f7> a bookmark-page
- <f7> <f7> list-bookmarks
- C-z suspend-telescope
-
- vi(1)-like keys
- k previous-line
- j next-line
- l forward-char
- h backward-char
- { backward-paragraph
- } forward-paragraph
- ^ move-beginning-of-line
- $ move-end-of-line
- K scroll-line-up
- J scroll-line-down
- g g beginning-of-buffer
- G end-of-buffer
- g D tab-close
- g N tab-new
- g t tab-next
- g T tab-previous
- g M-t tab-move
- g M-T tab-move-to
- H previous-page
- L next-page
- u tab-undo-close
- q kill-telescope
- ESC clear-minibuf
- : execute-extended-command
-
- CUA-like keys
- <up> previous-line
- <down> next-line
- <right> forward-char
- <left> backward-char
- <home> move-beginning-of-line
- <end> move-end-of-line
- <prior> scroll-up
- <next> scroll-down
- C-w tab-close
- C-t tab-new
- M-<prior> tab-previous
- M-<next> tab-next
- del previous-page
- M-<left> previous-page
- M-<right> next-page
- <f5> reload-page
- r reload-page
-
- Neither Emacs nor vi specific
- <f1> toggle-help
- enter push-button
- M-enter push-button-new-tab
- M-tab previous-button
- backtab previous-button
- tab next-button
- M-t tab-select
- [ tab-previous
- ] tab-next
- M-[ tab-move-to
- M-] tab-move
- M-l link-select
- M-/ swiper
- M-r reply-last-input
-
- Minibuffer-specific keys
- enter mini-complete-and-exit
- C-g mini-abort
- ESC mini-abort
- C-d mini-delete-char
- del mini-delete-backward-char
- backspace mini-delete-backward-char
- C-h mini-delete-backward-char
- C-b backward-char
- C-f forward-char
- <left> backward-char
- <right> forward-char
- C-e move-end-of-line
- C-a move-beginning-of-line
- <end> move-end-of-line
- <home> move-beginning-of-line
- C-k mini-kill-line
- C-u mini-kill-whole-line
- M-p mini-previous-history-element
- M-n mini-next-history-element
- C-p previous-completion
- C-n next-completion
- <up> previous-completion
- <down> next-completion
- tab insert-current-candidate
- M-< mini-goto-beginning
- M-> mini-goto-end
-
-INTERACTIVE COMMANDS
- Follows the documentation for the interactive commands. These commands
- can be bound to a key or executed with execute-extended-command.
-
- Movement commands
- backward-char Move point one character backward.
- backward-paragraph Move point one paragraph backward.
- beginning-of-buffer Move point to the beginning of the buffer.
- end-of-buffer Move point to the end of the buffer.
- forward-char Move point one character forward.
- forward-paragraph Move point one paragraph forward.
- insert-current-candidate Copy the current selection text as minibuffer
- input.
- move-beginning-of-line Move point at the beginning of the current
- (visual) line.
- move-end-of-line Move point at the end of the current (visual)
- line.
- next-button Move point to the next link.
- next-completion Select the next completion.
- next-heading Move point to the next heading.
- next-line Move point to the next (visual) line, in the
- same column if possible.
- previous-button Move point to the previous link.
- previous-completion Select the previous completion.
- previous-heading Move point to the previous heading.
- previous-line Move point to the previous (visual) line.
-
- Bookmark-related commands
- bookmark-page Save a page in the bookmark file. It preloads
- the minibuffer with the current URL.
- list-bookmarks Load the bookmarks page.
-
- Tab-related commands
- tab-close Close the current tab.
- tab-close-other Close all tabs but the current one.
- tab-move Move the current tab after the next one,
- wrapping around if needed.
- tab-move-to Move the current tab before the previous one,
- wrapping around if needed.
- tab-new Open a new tab.
- tab-next Focus next tab, wrapping around eventually.
- tab-previous Focus the previous tab, wrapping around
- eventually.
- tab-select Switch to a tab using the minibuffer.
- tab-undo-close Re-open the most recently closed tab, if any.
-
- Misc commands
- cache-info Show cache stats.
- clear-minibuf Clear the echo area.
- dec-fill-column Decrement fill-column by two.
- execute-extended-command Execute an internal command.
- kill-telescope Quit telescope.
- inc-fill-column Increment fill-column by two.
- link-select Select and visit a link using the minibuffer.
- load-current-url Edit the current URL.
- load-url Prompt for an URL.
- next-page Go forward in the page history.
- olivetti-mode Toggle olivetti mode (i.e. horizontal centering
- of the lines of the window.)
- other-window Select the other window.
- previous-page Go backward in the page history.
- push-button Follow link at point, or toggle the visibility
- of the following preformatted block if called
- when the cursor is on the heading of the block.
- push-button-new-tab Follow link at point in a new tab.
- redraw Redraw the screen, useful if some background
- program messed up the display.
- reload-page Reload the current page.
- reply-last-input Reply the last input request.
- scroll-down Scroll down by one visual page.
- scroll-line-down Scroll down by one line.
- scroll-line-up Scroll up by one line.
- scroll-up Scroll up by one visual page.
- suspend-telescope Suspend the current telescope session.
- swiper Jump to a line using the minibuffer.
- toc Jump to a heading using the minibuffer.
- toggle-help Toggle side window with help about available
- keys and their associated interactive command.
- toggle-pre-wrap Toggle the wrapping of preformatted blocks.
- write-buffer Save the current buffer to the disk.
-
- Minibuffer commands
- mini-abort Abort the current minibuffer action.
- mini-complete-and-exit Complete the current minibuffer action.
- mini-delete-backward-char
- Delete the character before the point.
- mini-delete-char Delete the character after the point.
- mini-goto-beginning Select the first completion, if any.
- mini-goto-end Select the last completion, if any.
- mini-kill-line Delete from point until the end of the line.
- mini-kill-whole-line Delete the whole line.
- mini-next-history-element
- Load the previous history element.
- mini-previous-history-element
- Load the next history element.
-
- Aliases
- The following aliases are available during execute-extended-command:
- open load-url
- tabn tab-next
- tabnew tab-new
- tabp tab-previous
- q and wq kill-telescope
- w write-buffer
-
-ENVIRONMENT
- When telescope is started, it inspects the following environment
- variables:
-
- HOME The user's login directory.
-
- NO_COLORS To decide whether to use colors or not. The content of the
- variable doesn't matter.
-
- TERM The user's terminal name.
-
- XDG_CACHE_HOME, XDG_CONFIG_HOME, XDG_DATA_HOME
- If defined can alter the default location of the files used.
-
-FILES
- By default telescope follows the XDG Base Directory Specification.
- However, if ~/.telescope exists, XDG is ignored and all the files are
- stored inside it. The usage of XDG_CACHE_HOME, XDG_CONFIG_HOME and
- XDG_DATA_HOME can further alter the location of these files.
-
- ~/.config/telescope/config
- Default configuration file.
- ~/.local/share/telescope/pages/about_*.gmi
- Overrides for built-in about: pages.
- ~/.local/share/telescope/bookmarks.gmi
- Bookmarks file.
- ~/.local/share/telescope/known_hosts
- Hash of the certificates for all the known hosts. Each line
- contains three fields: hostname with optional port number, hash
- of the certificate and a numeric flag.
- ~/.cache/telescope/lock
- Lock file used to prevent multiple instance of telescope from
- running at the same time.
- ~/.cache/telescope/session
- The list of tabs from the last session.
-
-EXAMPLES
- It's possible to browse the small web (i.e. simple websites) by using
- programs like the duckling-proxy by defining a proxy in
- ~/.config/telescope/config:
-
- proxy http via "gemini://127.0.0.1:1965"
- proxy https via "gemini://127.0.0.1:1965"
-
- To load telescope without any configuration
-
- telescope -c /dev/null
-
-STANDARDS
- XDG Base Directory Specification,
- https://specifications.freedesktop.org/basedir-spec/latest/.
-
-ACKNOWLEDGEMENTS
- The Trust, but verify (where appropriate) TOFU scheme was firstly
- suggested by thfr: gemini://thfr.info/gemini/modified-trust-verify.gmi.
-
-AUTHORS
- The telescope program was written by Omar Polo <op@omarpolo.com>.
-
-CAVEATS
- telescope assumes a UTF-8 environment and doesn't try to cope with other
- encodings. This can cause strange rendering issues if you're lucky, or
- possibly weird thing happening depending on your locale and terminal
- emulator.
-
- The algorithm used for text-wrapping is naive and doesn't really work for
- languages that make heavily use of glyphs composed by multiple UNICODE
- codepoints.
-
-BUGS
- There's no UI for out-of-band certificates validation.
-
-OpenBSD 7.1 January 5, 2022 OpenBSD 7.1
blob - /dev/null
blob + 1fbed6ffab6a3c8f0c5749ed0bc0f23d4e80c31e (mode 644)
Binary files /dev/null and site/logo.png differ
blob - /dev/null
blob + 6bfce467d643df97843c961798ba94e767ec4c72 (mode 644)
--- /dev/null
+++ site/mandoc.css
+/* $OpenBSD: mandoc.css,v 1.39 2022/07/06 14:27:55 schwarze Exp $ */
+/*
+ * Standard style sheet for mandoc(1) -Thtml and man.cgi(8).
+ *
+ * Written by Ingo Schwarze <schwarze@openbsd.org>.
+ * I place this file into the public domain.
+ * Permission to use, copy, modify, and distribute it for any purpose
+ * with or without fee is hereby granted, without any conditions.
+ */
+
+/* Global defaults. */
+
+html { max-width: 65em;
+ --bg: #FFFFFF;
+ --fg: #000000; }
+body { background: var(--bg);
+ color: var(--fg);
+ font-family: Helvetica,Arial,sans-serif; }
+h1, h2 { font-size: 110%; }
+table { margin-top: 0em;
+ margin-bottom: 0em;
+ border-collapse: collapse; }
+/* Some browsers set border-color in a browser style for tbody,
+ * but not for table, resulting in inconsistent border styling. */
+tbody { border-color: inherit; }
+tr { border-color: inherit; }
+td { vertical-align: top;
+ padding-left: 0.2em;
+ padding-right: 0.2em;
+ border-color: inherit; }
+ul, ol, dl { margin-top: 0em;
+ margin-bottom: 0em; }
+li, dt { margin-top: 1em; }
+pre { font-family: inherit; }
+
+.permalink { border-bottom: thin dotted;
+ color: inherit;
+ font: inherit;
+ text-decoration: inherit; }
+* { clear: both }
+
+/* Search form and search results. */
+
+fieldset { border: thin solid silver;
+ border-radius: 1em;
+ text-align: center; }
+input[name=expr] {
+ width: 25%; }
+
+table.results { margin-top: 1em;
+ margin-left: 2em;
+ font-size: smaller; }
+
+/* Header and footer lines. */
+
+div[role=doc-pageheader] {
+ display: flex;
+ border-bottom: 1px dotted #808080;
+ margin-bottom: 1em;
+ font-size: smaller; }
+.head-ltitle { flex: 1; }
+.head-vol { flex: 0 1 auto;
+ text-align: center; }
+.head-rtitle { flex: 1;
+ text-align: right; }
+
+div[role=doc-pagefooter] {
+ display: flex;
+ justify-content: space-between;
+ border-top: 1px dotted #808080;
+ margin-top: 1em;
+ font-size: smaller; }
+.foot-left { flex: 1; }
+.foot-date { flex: 0 1 auto;
+ text-align: center; }
+.foot-os { flex: 1;
+ text-align: right; }
+
+/* Sections and paragraphs. */
+
+main { margin-left: 3.8em; }
+.Nd { }
+section.Sh { }
+h2.Sh { margin-top: 1.2em;
+ margin-bottom: 0.6em;
+ margin-left: -3.2em; }
+section.Ss { }
+h3.Ss { margin-top: 1.2em;
+ margin-bottom: 0.6em;
+ margin-left: -1.2em;
+ font-size: 105%; }
+.Pp { margin: 0.6em 0em; }
+.Sx { }
+.Xr { }
+
+/* Displays and lists. */
+
+.Bd { }
+.Bd-indent { margin-left: 3.8em; }
+
+.Bl-bullet { list-style-type: disc;
+ padding-left: 1em; }
+.Bl-bullet > li { }
+.Bl-dash { list-style-type: none;
+ padding-left: 0em; }
+.Bl-dash > li:before {
+ content: "\2014 "; }
+.Bl-item { list-style-type: none;
+ padding-left: 0em; }
+.Bl-item > li { }
+.Bl-compact > li {
+ margin-top: 0em; }
+
+.Bl-enum { padding-left: 2em; }
+.Bl-enum > li { }
+.Bl-compact > li {
+ margin-top: 0em; }
+
+.Bl-diag { }
+.Bl-diag > dt {
+ font-style: normal;
+ font-weight: bold; }
+.Bl-diag > dd {
+ margin-left: 0em; }
+.Bl-hang { }
+.Bl-hang > dt { }
+.Bl-hang > dd {
+ margin-left: 5.5em; }
+.Bl-inset { }
+.Bl-inset > dt { }
+.Bl-inset > dd {
+ margin-left: 0em; }
+.Bl-ohang { }
+.Bl-ohang > dt { }
+.Bl-ohang > dd {
+ margin-left: 0em; }
+.Bl-tag { margin-top: 0.6em;
+ margin-left: 5.5em; }
+.Bl-tag > dt {
+ float: left;
+ margin-top: 0em;
+ margin-left: -5.5em;
+ padding-right: 0.5em;
+ vertical-align: top; }
+.Bl-tag > dd {
+ clear: right;
+ column-count: 1; /* Force block formatting context. */
+ width: 100%;
+ margin-top: 0em;
+ margin-left: 0em;
+ margin-bottom: 0.6em;
+ vertical-align: top; }
+.Bl-compact { margin-top: 0em; }
+.Bl-compact > dd {
+ margin-bottom: 0em; }
+.Bl-compact > dt {
+ margin-top: 0em; }
+
+.Bl-column { }
+.Bl-column > tbody > tr { }
+.Bl-column > tbody > tr > td {
+ margin-top: 1em; }
+.Bl-compact > tbody > tr > td {
+ margin-top: 0em; }
+
+.Rs { font-style: normal;
+ font-weight: normal; }
+.RsA { }
+.RsB { font-style: italic;
+ font-weight: normal; }
+.RsC { }
+.RsD { }
+.RsI { font-style: italic;
+ font-weight: normal; }
+.RsJ { font-style: italic;
+ font-weight: normal; }
+.RsN { }
+.RsO { }
+.RsP { }
+.RsQ { }
+.RsR { }
+.RsT { text-decoration: underline; }
+.RsU { }
+.RsV { }
+
+.eqn { }
+.tbl td { vertical-align: middle; }
+
+.HP { margin-left: 3.8em;
+ text-indent: -3.8em; }
+
+/* Semantic markup for command line utilities. */
+
+table.Nm { }
+code.Nm { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
+.Fl { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
+.Cm { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
+.Ar { font-style: italic;
+ font-weight: normal; }
+.Op { display: inline flow; }
+.Ic { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
+.Ev { font-style: normal;
+ font-weight: normal;
+ font-family: monospace; }
+.Pa { font-style: italic;
+ font-weight: normal; }
+
+/* Semantic markup for function libraries. */
+
+.Lb { }
+code.In { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
+a.In { }
+.Fd { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
+.Ft { font-style: italic;
+ font-weight: normal; }
+.Fn { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
+.Fa { font-style: italic;
+ font-weight: normal; }
+.Vt { font-style: italic;
+ font-weight: normal; }
+.Va { font-style: italic;
+ font-weight: normal; }
+.Dv { font-style: normal;
+ font-weight: normal;
+ font-family: monospace; }
+.Er { font-style: normal;
+ font-weight: normal;
+ font-family: monospace; }
+
+/* Various semantic markup. */
+
+.An { }
+.Lk { }
+.Mt { }
+.Cd { font-style: normal;
+ font-weight: bold;
+ font-family: inherit; }
+.Ad { font-style: italic;
+ font-weight: normal; }
+.Ms { font-style: normal;
+ font-weight: bold; }
+.St { }
+.Ux { }
+
+/* Physical markup. */
+
+.Bf { display: inline flow; }
+.No { font-style: normal;
+ font-weight: normal; }
+.Em { font-style: italic;
+ font-weight: normal; }
+.Sy { font-style: normal;
+ font-weight: bold; }
+.Li { font-style: normal;
+ font-weight: normal;
+ font-family: monospace; }
+
+/* Tooltip support. */
+
+h2.Sh, h3.Ss { position: relative; }
+.An, .Ar, .Cd, .Cm, .Dv, .Em, .Er, .Ev, .Fa, .Fd, .Fl, .Fn, .Ft,
+.Ic, code.In, .Lb, .Lk, .Ms, .Mt, .Nd, code.Nm, .Pa, .Rs,
+.St, .Sx, .Sy, .Va, .Vt, .Xr {
+ display: inline flow;
+ position: relative; }
+
+.An::before { content: "An"; }
+.Ar::before { content: "Ar"; }
+.Cd::before { content: "Cd"; }
+.Cm::before { content: "Cm"; }
+.Dv::before { content: "Dv"; }
+.Em::before { content: "Em"; }
+.Er::before { content: "Er"; }
+.Ev::before { content: "Ev"; }
+.Fa::before { content: "Fa"; }
+.Fd::before { content: "Fd"; }
+.Fl::before { content: "Fl"; }
+.Fn::before { content: "Fn"; }
+.Ft::before { content: "Ft"; }
+.Ic::before { content: "Ic"; }
+code.In::before { content: "In"; }
+.Lb::before { content: "Lb"; }
+.Lk::before { content: "Lk"; }
+.Ms::before { content: "Ms"; }
+.Mt::before { content: "Mt"; }
+.Nd::before { content: "Nd"; }
+code.Nm::before { content: "Nm"; }
+.Pa::before { content: "Pa"; }
+.Rs::before { content: "Rs"; }
+h2.Sh::before { content: "Sh"; }
+h3.Ss::before { content: "Ss"; }
+.St::before { content: "St"; }
+.Sx::before { content: "Sx"; }
+.Sy::before { content: "Sy"; }
+.Va::before { content: "Va"; }
+.Vt::before { content: "Vt"; }
+.Xr::before { content: "Xr"; }
+
+.An::before, .Ar::before, .Cd::before, .Cm::before,
+.Dv::before, .Em::before, .Er::before, .Ev::before,
+.Fa::before, .Fd::before, .Fl::before, .Fn::before, .Ft::before,
+.Ic::before, code.In::before, .Lb::before, .Lk::before,
+.Ms::before, .Mt::before, .Nd::before, code.Nm::before,
+.Pa::before, .Rs::before,
+h2.Sh::before, h3.Ss::before, .St::before, .Sx::before, .Sy::before,
+.Va::before, .Vt::before, .Xr::before {
+ opacity: 0;
+ transition: .15s ease opacity;
+ pointer-events: none;
+ position: absolute;
+ bottom: 100%;
+ box-shadow: 0 0 .35em var(--fg);
+ padding: .15em .25em;
+ white-space: nowrap;
+ font-family: Helvetica,Arial,sans-serif;
+ font-style: normal;
+ font-weight: bold;
+ background: var(--bg);
+ color: var(--fg); }
+.An:hover::before, .Ar:hover::before, .Cd:hover::before, .Cm:hover::before,
+.Dv:hover::before, .Em:hover::before, .Er:hover::before, .Ev:hover::before,
+.Fa:hover::before, .Fd:hover::before, .Fl:hover::before, .Fn:hover::before,
+.Ft:hover::before, .Ic:hover::before, code.In:hover::before,
+.Lb:hover::before, .Lk:hover::before, .Ms:hover::before, .Mt:hover::before,
+.Nd:hover::before, code.Nm:hover::before, .Pa:hover::before,
+.Rs:hover::before, h2.Sh:hover::before, h3.Ss:hover::before, .St:hover::before,
+.Sx:hover::before, .Sy:hover::before, .Va:hover::before, .Vt:hover::before,
+.Xr:hover::before {
+ opacity: 1;
+ pointer-events: inherit; }
+
+/* Overrides to avoid excessive margins on small devices. */
+
+@media (max-width: 37.5em) {
+main { margin-left: 0.5em; }
+h2.Sh, h3.Ss { margin-left: 0em; }
+.Bd-indent { margin-left: 2em; }
+.Bl-hang > dd {
+ margin-left: 2em; }
+.Bl-tag { margin-left: 2em; }
+.Bl-tag > dt {
+ margin-left: -2em; }
+.HP { margin-left: 2em;
+ text-indent: -2em; }
+}
+
+/* Overrides for a dark color scheme for accessibility. */
+
+@media (prefers-color-scheme: dark) {
+html { --bg: #1E1F21;
+ --fg: #EEEFF1; }
+:link { color: #BAD7FF; }
+:visited { color: #F6BAFF; }
+}
blob - /dev/null
blob + dd06bc51a0deff1384a56013dfafbfebe9ea4f11 (mode 755)
--- /dev/null
+++ site/menu.pl
+#!/usr/bin/env perl
+
+use v5.10;
+use strict;
+use warnings;
+
+my $page = shift or die 'missing page';
+my @pages = ();
+
+while (<>) {
+ chomp;
+ @pages = (@pages, $_);
+}
+
+say "<nav>";
+my $did = 0;
+for (@pages) {
+ if (!$did) {
+ $did = 1;
+ } else {
+ print "| ";
+ }
+
+ my ($href, $text) = m/^([^\s]*)\s*(.*)$/;
+ if ($href eq $page) {
+ print "<strong>$text</strong> ";
+ } else {
+ print "<a href='$href'>$text</a> ";
+ }
+}
+
+say "</nav>";
blob - /dev/null
blob + c4f375d1422033f65e993b4deab8887d659675d8 (mode 644)
--- /dev/null
+++ site/style.css
+body {
+ font-family: monospace;
+ font-size: 14px;
+ max-width: 780px;
+ margin: 0 auto;
+ padding: 20px;
+}
+
+.banner {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+}
+
+.banner pre {
+ background-color: transparent;
+}
+
+h1::before {
+ content: "# ";
+}
+
+h2 {
+ margin-top: 40px;
+}
+
+h2::before {
+ content: "## ";
+}
+
+h3::before {
+ content: "### ";
+}
+
+.gallery {
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ justify-content: space-around;
+}
+
+.gallery figure {
+ width: 40%;
+ margin: 1rem;
+}
+
+img {
+ max-width: 100%;
+ height: auto;
+}
+
+.repology {
+ text-align: center;
+}
+
+@media only screen and (min-width: 768px) {
+ .repology {
+ text-align: unset;
+ float: right;
+ }
+}
+
+blockquote {
+ margin: 0;
+ padding: 0;
+}
+
+blockquote::before {
+ content: "> ";
+}
+
+blockquote p {
+ font-style: italic;
+ display: inline;
+}
+
+p.link::before {
+ content: "→ ";
+}
+
+strong::before { content: "*" }
+strong::after { content: "*" }
+
+hr {
+ border: 0;
+ height: 1px;
+ background-color: #222;
+ width: 100%;
+ display: block;
+ margin: 2em auto;
+}
+
+img {
+ margin: 10px;
+ display: inline-block;
+}
+
+section.with-image {
+ margin-top: 1rem;
+}
+
+@media only screen and (min-width: 768px) {
+ section.with-image {
+ display: flex;
+ flex-direction: row;
+ }
+}
+
+section.with-image img {
+ object-fit: contain;
+}
+
+section.with-image div {
+ overflow: auto;
+}
+
+pre {
+ overflow: auto;
+ padding: 1rem;
+ background-color: #f0f0f0;
+ border-radius: 3px;
+}
+
+pre.banner {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+}
+
+code, kbd {
+ color: #9d109d;
+}
+
+ul.link-list {
+ list-style: disclosure-closed;
+}
+
+footer {
+ margin-top: 4rem;
+ font-size: 0.8rem;
+ border-top: 1px solid;
+}
+
+@media (prefers-color-scheme: dark) {
+ body {
+ background-color: #222;
+ color: white;
+ }
+
+ a {
+ color: aqua;
+ }
+
+ hr {
+ background-color: #ddd;
+ }
+
+ pre {
+ background-color: #353535;
+ }
+
+ code, kbd {
+ color: #ff4cff;
+ }
+
+ img {
+ opacity: 0.8;
+ transition: opacity .2s ease-in-out;
+ }
+
+ img:hover {
+ opacity: 1;
+ }
+}
+
+@media (max-width: 400px) {
+ pre.banner { font-size: 9px; }
+}
+
+@media (max-width: 500px) {
+ pre.banner { font-size: 10px; }
+}
blob - /dev/null
blob + e2506f108b914844d1ebee9c0ec1d7f8c494cb00 (mode 755)
--- /dev/null
+++ site/subst
+#!/usr/bin/env perl
+#
+# Copyright (c) 2022 Omar Polo <op@omarpolo.com>
+#
+# Permission to use, copy, modify, and distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+#
+# subst -- filter that replaces key=values pairs
+#
+# usage: subst key1=val1 [... keyn=valn] [files...]
+#
+# Use `--' before the first file if it may contain an = in its name.
+# If no files are given, read and substitute from standard input.
+
+use v5.10;
+use strict;
+use warnings;
+
+my @args = ();
+
+while (1) {
+ $_ = shift;
+ last if !$_;
+
+ if ($_ eq '--') {
+ last;
+ } elsif ($_ !~ m/=/) {
+ unshift @ARGV, $_;
+ last;
+ }
+
+ my ($match, $repl) = m/^([^\s]*)=(.*)$/;
+ push @args, "-e", "s!$match!$repl!g";
+}
+
+# OK, shelling out to sed is a bit lame...
+exec "sed", @args, @ARGV;