TELESCOPE(1)
π¦ TELESCOPE(1) β telescope, General Commands Manual π
okay bestie, welcome to telescope(1), and yes it's lowkey a whole vibe. We're in the General Commands Manual, and this browser is giving main character energy fr fr. π
πΈ NAME πΈ
telescope β multi-protocol browser. That's the name, that's the game, and it's iconic. β¨
π SYNOPSIS π
telescope [-hnSv] [-c config] [URL]
π DESCRIPTION π
telescope is a browser that supports the Finger, Gemini and Gopher protocols. It features tabs, a minibuffer, interactive completions, bookmarks and client certificates. No cap, it's slay. π
The arguments are as follows:
-c configβ specify an alternative configuration file. By default~/.config/telescope/configis loaded. So if you're not using the default, this is your girl. π-h,--helpβ display version, usage and exit. A little "hey bestie, here's how this works" moment, and then it dips. π-nβ Configtest mode. Only check the configuration file for validity. No browsing, just validation vibes. β-S,--safeβ "Safe" (or "sandbox") mode. Preventtelescopefrom writing files to the disk and to acquire the lock, allowing to run multiple instances at the same time.telescopestill loads the session file and the custom about pages. It's the "look, don't touch the disk" era. π‘οΈ-v,--versionβ display version and exit. Short, sweet, iconic. π
π UI CONCEPTS π
The telescope interface is divided into four areas: the tabline, the body, the modeline and the echoarea/minibuffer. Four little zones, one big mood. β¨
π The tabline π
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 window is literally giving "there's more where that came from." π
π¦ The body π¦
The body occupies the majority of the visible area. It contains the current page and optionally a side window. Main character energy, literally. π
β The modeline β
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, whether a client certificate is in use, a warning indicator for faulty Gemini servers, document type, the scroll offset and the URL. So much tea in one line. β
When a client certificate is in use, a C character is showed. Some Gemini servers have buggy TLS handling but some information might still be available. This information could be truncated. In those circumstances, a W character is shown. So C and W are your little status besties. π
πΈ The echoarea πΈ
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. It's the group chat at the bottom of your screen, basically. π¬
π§ 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. So bestie, it's giving "trust but verify, except the verify tool isn't built in yet." π iykyk.
π₯ SUPPORTED PROTOCOLS π₯
The following protocols are supported:
about:β About pages aretelescopeinternal page. Seeabout:aboutfor a list of all these pages. It's the meta era. πͺfile://β File types know totelescope, such as.gmi,.gemini,.txt,.md,.markdown,.diffor.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/tmpor~/Downloads) are available. So yes, the extension is doing all the talking. π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. Same URL, different little outfits. π
gemini://β Gemini is fully supported. Periodt. πgopher://β Gopher support is limited to items type 0, 1 and 7. All text is assumed to be encoded in UTF-8 (superset of ASCII). Cute, limited, still valid. π±
User-entered URLs, given as argument on the command line or entered with load-url, by default are interpreted with a simple heuristic:
- if it's a proper absolute URL then use it as-is,
- if it starts with
./or/assume it's afile://URL, - otherwise treat it like a hostname with protocol
default-protocol(geminiby default).
The setting load-url-use-heuristic can be used to disable the use of heuristics. So yes, bestie, there's a little brain doing guesswork unless you turn it off. π§ β¨
π MIME-TYPE HANDLING π
Beyond the supported protocols which telescope already understands, mime-types which telescope cannot display can be opened using a mailcap file. By default, telescope will look for one of the following mailcap files in the following order:
~/.mailcap
/etc/mailcap
/usr/etc/mailcap
/usr/local/etc/mailcap
A default mailcap entry is always defined by telescope which uses xdg-open(1) as a fallback for mime-types not defined through a mailcap file, or if no mailcap file was found. So even when it doesn't know the vibe, it has a fallback friend. π«Ά
Refer to RFC 1524 for more information about the structure and format of this file. Note that telescope currently only supports a small subset of this standard, honouring only the needsterminal and copiousouput flags. Small subset, still serving. π
β¨ CONFIGURATION FILE β¨
okay so during startup, telescope reads the configuration file at ~/.config/telescope/config or ~/.telescope/config. two paths, bestie β it's giving options.
It's possible to load a custom configuration file using the -c flag. slay.
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. iykyk terminal girlies.
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. so close, yet so far.
The following constructs are available:
π§© the constructs
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β. no cap, that's the whole mapping moment.
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. clean URI only, bestie.
ποΈ 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 happened (new or closed tabs, visited a link ...) Defaults to20.default-protocol(string) β The default protocol assumed for theload-urlheuristic. Defaults togemini.default-search-engine(string) β URL of the preferred search engine, used by the search command. If it's a Gemini URI, the user query will be appended as query, replacing it if present. If it's a Gopher URI, the user query will be sent as gopher search parameter. No other URI schemes are allowed.dont-wrap-pre(boolean) β If true, don't wrap preformatted blocks. Defaults tofalse.download-path(string) β The default download path. Defaults to/tmp.emojify-link(boolean) β If true, when the text of a link starts with an emoji followed by a space, use that emoji as line prefix. Defaults totrue.enable-colors(boolean) β If true, enable colours. Defaults tofalseifNO_COLORSis set,trueotherwise.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 to80.fringe-ignore-offset(boolean) β If true, the fringe doesn't obeyolivetti-mode. Defaults tofalse.hide-pre-blocks(boolean) β If true, hide by default the body of the preformatted blocks. Defaults tofalse.push-buttoncan be used to toggle the visibility per-block.hide-pre-closing-line(boolean) β If true, hide the closing line of preformatted blocks. Defaults tofalse.hide-pre-context(boolean) β If true, hide the start and end line of the preformatted blocks. If bothhide-pre-contextandhide-pre-blocksare true, preformatted blocks are irremediably hidden. Defaults tofalse.new-tab-url(string) β URL for the new tab page. Defaults toabout:new.load-url-use-heuristic(boolean) β If false, don't use heuristics to resolve the URLs. Non-absolute URLs given as command line argument will be resolved as file system paths,load-urlwill resolve as relative to the current URL. Defaults totrue.max-killed-tabs(integer) β The maximum number of closed tabs to keep track of, defaults to10. Must be a positive number; if zero, don't save closed tabs at all.olivetti-mode(boolean) β If true, enableolivetti-mode. Defaults totrue.tab-bar-show(integer) β Iftab-bar-showis-1hide the tab bar permanently, if0show it unconditionally. If1, show the bar only when there is more than one tab. Defaults to1.update-title(boolean) β If true, set the terminal title to the page title. Defaults totrue.
π¨ 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 downloadline.download.doneβ a completed downloadline.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β headingsline.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 paneminibufferβ 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,lineandtraildefault to that; if two values are given thentraildefaults toprefix. 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 others will only use the first one given. so if it's not a line. style, it's first attribute only, periodt.
bg prefix [line [trail]]β Sets the background color. Follows the same behaviour asattrregarding the optional parameters. The colour is one ofblack,red,green,yellow,blue,magenta,cyanandwhite;colour0tocolour255(orcolor0tocolor255) from the 256-colour set;defaultfor the default colour.fg prefix [line [trail]]β Sets the foreground color. It behaves just likebg.prefix prfx [cont]β Sets the prefix for the current line type toprfxandcontas the prefix for the continuation lines (i.e. when a long line gets wrapped.) Ifcontis not given its value will be the same ofprfx.
π DEFAULT KEY BINDINGS π
okay so the default key bindings? super close to GNU Emacs, but bestie they did not forget the vi(1) girlies and βCUAβ users β those familiar bindings are in here too. π
Quick notation check before the list: C-x means Control-x, and M-x means Meta-x. The Meta key can 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 press 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 keysdelorbackspaceβ Backspaceescβ Escapespaceorspcβ Spaceenterorretβ Entertabβ Tabbacktabβ depends on the configuration of the terminal emulator; usually shift tab.
π¦ GNU Emacs-like keys π¦
C-pβprevious-lineC-nβnext-lineC-fβforward-charC-bβbackward-charM-{βbackward-paragraphM-}βforward-paragraphC-aβmove-beginning-of-lineC-eβmove-end-of-lineM-v,M-spaceβscroll-upC-v,spaceβscroll-downM-<βbeginning-of-bufferM->βend-of-bufferC-x C-cβkill-telescopeC-x C-wβwrite-bufferC-gβclear-minibufM-xβexecute-extended-commandC-c {βdec-fill-columnC-c }βinc-fill-columnC-c pβprevious-headingC-c nβnext-heading>βload-url<βload-current-urlC-x C-fβload-urlC-x M-fβload-current-urlC-x oβother-windowC-x t 0βtab-closeC-x t 1βtab-close-otherC-x t 2βtab-newC-x t oβtab-nextC-x t Oβtab-previousC-x t mβtab-moveC-x t Mβtab-move-toB,C-M-bβprevious-pageF,C-M-fβnext-page<f7> aβbookmark-page<f7> <f7>βlist-bookmarksC-zβsuspend-telescope
π vi(1)-like keys π
kβprevious-linejβnext-linelβforward-charhβbackward-char{βbackward-paragraph}βforward-paragraph^βmove-beginning-of-line$βmove-end-of-lineKβscroll-line-upJβscroll-line-downg gβbeginning-of-bufferGβend-of-bufferg uβupg rβrootg hβhomeg Dβtab-closeg Nβtab-newg tβtab-nextg Tβtab-previousg M-tβtab-moveg M-Tβtab-move-toHβprevious-pageLβnext-pageuβtab-undo-closeqβkill-telescopeESCβ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-downC-wβtab-closeC-tβtab-newM-<prior>βtab-previousM-<next>βtab-nextdelβprevious-pageM-<left>βprevious-pageM-<right>βnext-page<f5>βreload-pagerβreload-page
π Neither Emacs nor vi specific π
<f1>βtoggle-helpenterβpush-buttonM-enterβpush-button-new-tabM-tabβprevious-buttonbacktabβprevious-buttontabβnext-buttonM-tβtab-select[βtab-previous]βtab-nextM-[βtab-move-toM-]βtab-moveM-lβlink-selectM-/βswiperM-rβreply-last-inputsβsearch
π§ Minibuffer-specific keys π§
enterβmini-complete-and-exitC-gβmini-abortESCβmini-abortC-dβmini-delete-chardelβmini-delete-backward-charbackspaceβmini-delete-backward-charC-hβmini-delete-backward-charC-xβmini-edit-externalC-bβbackward-charC-fβforward-char<left>βbackward-char<right>βforward-charC-eβmove-end-of-lineC-aβmove-beginning-of-line<end>βmove-end-of-line<home>βmove-beginning-of-lineC-kβmini-kill-lineC-uβmini-kill-whole-lineM-pβmini-previous-history-elementM-nβmini-next-history-elementC-pβprevious-completionC-nβnext-completion<up>βprevious-completion<down>βnext-completiontabβinsert-current-candidateM-<βmini-goto-beginningM->βmini-goto-end
π INTERACTIVE COMMANDS π
okay so these are the interactive commands, bestie β you can bind any of them to a key or run them with execute-extended-command. Theyβre giving βtiny spells for your browserβ and Iβm obsessed. β¨
πΆβοΈ 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.
π Client certificate-related commands
client-certificate-infoβ show the active client certificate.unload-certificateβ forget the certificate on this page.use-certificateβ use a certificate for the current 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β decrementfill-columnby two.execute-extended-commandβ execute an internal command.homeβ go to the home directory. The home directory is assumed to be the first path component in the~usernameform. If not found, loads the root directory.kill-telescopeβ quit telescope.inc-fill-columnβ incrementfill-columnby two.link-selectβ select and visit a link using the minibuffer.load-current-urlβ edit the current URL.load-urlβ prompt for an URL. Use the same heuristic as the URLs given as a command-line argument, unless theload-url-use-heuristicoption is unsed, in which case the URL is resolved using the current one as base.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.rootβ go to the root directory.searchβ search using the preferred search engine.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.toggle-stylingβ toggle the styling of the page. This remains in effect until toggled again.upβ go up one level in the path hierarchy.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-edit-externalβ edit the minibuffer contents with an editor.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. yes bestie, thatβs the order, iykyk π
β¨ Aliases
The following aliases are available during execute-extended-command:
openβload-urltabnβtab-nexttabnewβtab-newtabpβtab-previousqandwqβkill-telescopewβ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.VISUAL,EDITORβ the editor spawned by themini-edit-externalcommand. If not set,ed(1)the standard text editor is used.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.~/.config/telescope/certs.confβ URLs to client certificate mappings.~/.local/share/telescope/pages/about_*.gmiβ overrides for built-inabout:pages.~/.local/share/telescope/bookmarks.gmiβ bookmarks file.~/.local/share/telescope/certs/β directory where client certificates (identities) are stored.~/.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
π SEE ALSO
β 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. π
π BUGS
Thereβs no UI for out-of-band certificates validation.
π and thatβs the whole TELESCOPE(1) manual, bestie β Debian source/version, dated February 23, 2024. periodt. π β¨
π¦ where this page comes from
- nixos 26.05: telescope 0.11
- nixpkgs unstable: telescope 0.11
- Copyright (c) 2021, 2022, 2024 Omar Polo <op@omarpolo.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms