Blob


1 .\" Copyright (c) 2021 Omar Polo <op@omarpolo.com>
2 .\"
3 .\" Permission to use, copy, modify, and distribute this software for any
4 .\" purpose with or without fee is hereby granted, provided that the above
5 .\" copyright notice and this permission notice appear in all copies.
6 .\"
7 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14 .Dd $Mdocdate: November 29 2021$
15 .Dt TELESCOPE 1
16 .Os
17 .Sh NAME
18 .Nm telescope
19 .Nd multi-protocol browser
20 .Sh SYNOPSIS
21 .Nm
22 .Bk -words
23 .Op Fl ChnSv
24 .Op Fl c Ar config
25 .Op Ar URL
26 .Ek
27 .Sh DESCRIPTION
28 .Nm
29 is an interactive browser that supports the Finger, Gemini and Gopher
30 protocols.
31 .Nm
32 features tabs, a minibuffer, interactive completions, bookmarks and
33 out-of-band TOFU verification.
34 .Pp
35 The arguments are as follows:
36 .Bl -tag -width xxxxxxxxxxxxx
37 .It Fl C , Fl -colours
38 Show all available colors and exit.
39 This option can also be spelled
40 .Fl -colors .
41 .It Fl c Ar config
42 Specify an alternative configuration file.
43 By default
44 .Pa ~/.config/telescope/config
45 is loaded.
46 .It Fl h , Fl -help
47 Display version and usage.
48 .It Fl n
49 Configtest mode.
50 Only check the configuration file for validity.
51 .It Fl S , Fl -safe
52 .Dq Safe
53 .Pq or Dq sandbox
54 mode.
55 Prevent
56 .Nm
57 from writing files to the disk and to acquire the lock, allowing to
58 run multiple instances at the same time.
59 .Nm
60 still loads the session file and the custom about pages.
61 .It Fl v , Fl -version
62 Display version.
63 .El
64 .Sh UI CONCEPTS
65 .Nm
66 interface is divided into four areas: the tabline, the body, the
67 modeline and the echoarea/minibuffer.
68 .Pp
69 The tabline is always at the top of the screen and displays the tabs
70 separated by a vertical line.
71 When there are more tabs than the size of the window allow to display,
72 the characters
73 .Sq \&<
74 or
75 .Sq \&>
76 are shown at the start/end of the tabline to indicate that there are
77 more tabs in that direction.
78 .Pp
79 The body occupies the majority of the visible area.
80 It contains the current page and optionally a side window.
81 .Pp
82 The modeline is the second to last row of the screen.
83 It shows some information about the page: a spinner when the page is
84 loading, the trust level, the document type, the scroll offset and the
85 URL.
86 .Pp
87 The echoarea is usually the last line of the screen.
88 Messages are often showed there, and link addresses too.
89 The echoarea is also used to obtain input from the user.
90 When commands like
91 .Ic swiper
92 or
93 .Ic link-select
94 are invoked, the minibuffer area grows to show possible completions.
95 .Sh TOFU
96 .Nm
97 aims to use the
98 .Dq Trust, but Verify Pq where appropriate
99 approach for
100 TOFU
101 .Pq Dq Trust On First Use .
102 The idea is to define three level of verification for a certificate:
103 .Bl -tag -width 12m
104 .It untrusted
105 .Pq Sq \&!
106 the server fingerprint does NOT match the stored value.
107 .It trusted
108 .Pq Sq v
109 the server fingerprint matches the store one.
110 .It verified
111 .Pq Sq V
112 the fingerprint matches and has been verified out-of-band.
113 .El
114 .Pp
115 The trust level of the page is indicated in the modeline with the
116 indicated character.
117 .Pp
118 Most of the time the
119 .Dq trusted
120 level is enough, but where is appropriate users should be able to
121 verify out-of-band the certificate.
122 .Pp
123 At the moment, there is no built-in support for an out-of-band
124 verification though.
125 .Sh SUPPORTED PROTOCOLS
126 The following protocols are supported:
127 .Bl -tag -width gemini://
128 .It about:
129 About pages are
130 .Nm
131 internal page.
132 See about:about for a list of all these pages.
133 .It file://
134 File types know to
135 .Nm ,
136 such as .gmi, .gemini, .txt, .md, .markdown, .diff or .patch, can be
137 viewed inside the application.
138 Types of local files are detected solely based on the file extension.
139 On some systems, such as
140 .Ox ,
141 only files inside special directories
142 .Pq like Pa /tmp No or Pa ~/Downloads
143 are available.
144 .It finger://
145 Finger URLs are interpreted as follows:
146 .Bl -bullet -compact
147 .It
148 the host is determined by the host name portion of the URL
149 .It
150 if the user portion of the URL is provided, it's interpreted as the
151 user to finger, otherwise the path component will be used
152 .El
153 thus
154 .Lk finger://user@hostname
155 and
156 .Lk finger://hostname/user
157 are treated as the same URL.
158 .It gemini://
159 Gemini is fully supported, with the exception of client-certificates.
160 .It gopher://
161 Gopher support is limited to items type 0, 1 and 7.
162 All text is assumed to be encoded in UTF-8 (or ASCII).
163 .El
164 .Pp
165 User-entered URLs, given as argument on the command line or entered
166 with
167 .Ic load-url ,
168 are intepreted with a simple heuristic:
169 .Bl -bullet -compact
170 .It
171 if it's a proper absolute URL then use it as-is,
172 .It
173 if it starts with
174 .Dq ./
175 or
176 .Dq /
177 assume it's a file:// URL,
178 .It
179 otherwise assume it's a Gemini URL.
180 .El
181 .Sh CONFIGURATION FILE
182 During the startup,
183 .Nm
184 reads the configuration file at
185 .Pa ~/.config/telescope/config
186 or
187 .Pa ~/.telescope/config .
188 .Pp
189 It's possible to load a custom configuration file using the
190 .Fl c
191 flag.
192 .Pp
193 .Nm
194 will also load a file called
195 .Pa config-TERM ,
196 where
197 .Dq TERM
198 is the name of the terminal type
199 .Pq i.e. the TERM environment variable ,
200 if it exists.
201 .Pp
202 The format of the configuration file is fairly flexible.
203 The current line can be extended over multiple ones using a
204 backslash
205 .Pq Sq \e .
206 Comments can be put anywhere in the file using a hash mark
207 .Pq Sq # ,
208 and extend to the end of the current line, but backslashes can't be
209 used to extend comments over multiple lines.
210 .Pp
211 The following constructs are available:
212 .Bl -tag -width Ds
213 .It Ic bind Ar map Ar key Ar cmd
214 Bind
215 .Ar key
216 to the function
217 .Ar cmd
218 in the keymap
219 .Ar map .
220 Valid values for map are
221 .Dq global-map
222 .Pq i.e. when the user is viewing a page
223 and
224 .Dq minibuffer-map
225 .Pq i.e. when the minibuffer has the focus.
226 .Ar key
227 follows the same syntax described in
228 .Sx DEFAULT KEY BINDINGS
229 and all the possible functions are listed in
230 .Sx INTERACTIVE COMMANDS .
231 .It Ic proxy Ar proto Ic via Ar url
232 Use
233 .Ar url
234 as proxy for all URLs with
235 protocol
236 .Ar proto .
237 .Ar url
238 must be a Gemini URI without path, query and fragment component.
239 .It Ic set Ar opt No = Ar val
240 Set the option
241 .Ar opt
242 to the value
243 .Ar val .
244 Valid options are:
245 .Pp
246 .Bl -tag -width twelveletters -compact
247 .It autosave
248 .Pq integer
249 If greater than zero, save the session after the specified amount of
250 seconds after some events happens
251 .Pq new or closed tabs, visited a link ...
252 Defaults to 20.
253 .It dont-wrap-pre
254 .Pq integer
255 If nonzero, don't wrap preformatted blocks.
256 Defaults to 0.
257 .It download-path
258 .Pq string
259 The default download path.
260 Defaults to
261 .Pa /tmp .
262 .It emojify-link
263 .Pq integer
264 If nonzero, when the text of a link starts with an emoji followed by a
265 space, use that emoji as line prefix.
266 Defaults to 1.
267 .It enable-colors
268 .Pq integer
269 If nonzero, enable colours.
270 Defaults to 0 if
271 .Ev NO_COLORS
272 is set, 1 otherwise.
273 .It fill-column
274 .Pq integer
275 If greater than zero, lines of text will be formatted in a way that
276 don't exceed the given number of columns.
277 Defaults to 80.
278 .It hide-pre-blocks
279 .Pq integer
280 If nonzero, hide by default the body of the preformatted blocks.
281 Defaults to zero.
282 .Ic push-button
283 can be used to toggle the visibility per-block.
284 .It hide-pre-closing-line
285 .Pq integer
286 If nonzero, hide the closing line of preformatted blocks.
287 Defaults to 0.
288 .It hide-pre-context
289 .Pq integer
290 If nonzero, hide the start and end line of the preformatted blocks.
291 If both hide-pre-context and hide-pre-blocks are nonzero, preformatted
292 blocks are irremediably hidden.
293 Defaults to zero.
294 .It new-tab-url
295 .Pq string
296 URL for the new tab page.
297 Defaults to
298 .Dq about:new .
299 .It olivetti-mode
300 .Pq integer
301 If nonzero, enable
302 .Ic olivetti-mode
303 Defaults to 1.
304 .It set-title
305 .Pq integer
306 If nonzero, set the terminal title to the page title.
307 Defaults to 1.
308 .It tab-bar-show
309 .Pq integer
310 If tab-bar-show is -1 hide the tab bar permanently, if 0 show it
311 unconditionally.
312 If it's 1, show the bar only when there is more than one tab.
313 Defaults to 1.
314 .El
315 .It Ic style Ar name Ar option
316 Change the styling of the element identified by
317 .Ar name .
318 Multiple options may be specified within curly braces.
319 Valid style identifiers are:
320 .Bl -tag -width line.download.ongoing -compact -offset Ds
321 .It line
322 the area outside the lines in the body of the page.
323 .It line.compl
324 the completions.
325 .It line.compl.current
326 the current completion.
327 .It line.help
328 text in the *Help* buffer.
329 .It line.download.ongoing
330 an ongoing download
331 .It line.download.done
332 a completed download
333 .It line.download.info
334 informational text in the *Downloads* buffer.
335 .It line.text
336 text lines.
337 .It line.link
338 link lines.
339 .It line.title1..3
340 headings
341 .It line.item
342 item lines.
343 .It line.quote
344 quotes.
345 .It line.pre.start
346 the heading of a preformatted block.
347 .It line.pre
348 the content of a preformatted block.
349 .It line.pre.end
350 the closing line of a preformatted block.
351 .It download
352 the download pane
353 .It minibuffer
354 the minibuffer.
355 .It modeline
356 the modeline.
357 .It tabline
358 the tabline.
359 .It tabline.tab
360 the non-focused tabs.
361 .It tabline.current
362 the focused tab.
363 .El
364 .Pp
365 Valid options are:
366 .Bl -tag -width Ds
367 .It Ic attr Ar prefix Oo Ar line Oo Ar trail Oc Oc
368 Sets the text attributes.
369 If only one value is given,
370 .Ar line
371 and
372 .Ar trail
373 default to that; if two values are given then
374 .Ar trail
375 defaults to
376 .Ar prefix .
377 Each attribute is a comma-separated list of keywords:
378 .Bl -tag -width underline -compact -offset Ds
379 .It Ic normal
380 no attributes.
381 .It Ic standout
382 best highlighting mode for the terminal.
383 .It Ic underline
384 underlines the text.
385 .It Ic reverse
386 reverses background/foreground colors.
387 .It Ic blink
388 makes the text blinking.
389 .It Ic dim
390 half bright.
391 .It Ic bold
392 extra bright or bold.
393 .El
394 .Pp
395 Only the style identifiers with the
396 .Dq line.
397 prefix accept up to three attributes.
398 The other will only use the first one given.
399 .It Ic bg Ar prefix Oo Ar line Oo Ar trail Oc Oc
400 Sets the background color.
401 Follows the same behaviour as
402 .Ic attr
403 regarding the optional parameters.
404 The colour is one of black, red, green, yellow, blue,
405 magenta, cyan and white; colour0 to colour255
406 .Pq or color0 to color255
407 from the 256-colour set;
408 default for the default colour.
409 .It Ic fg Ar prefix Oo Ar line Oo Ar trail Oc Oc
410 Sets the foreground color.
411 It behaves just like
412 .Ic bg .
413 .It Ic prefix Ar prfx Op Ar cont
414 Sets the prefix for the current line type to
415 .Ar prfx
416 and
417 .Ar cont
418 as the prefix for the continuation lines
419 .Pq i.e. when a long line gets wrapped.
420 If
421 .Ar cont
422 is not given its value will be the same of
423 .Ar prfx .
424 .El
425 .El
426 .Sh DEFAULT KEY BINDINGS
427 The default key bindings are very similar to GNU Emacs, but care has
428 been taken to include also bindings familiar for
429 .Xr vi 1
430 and
431 .Dq CUA
432 users.
433 In the following examples, C-x means Control-x, M-x means Meta-x,
434 where the Meta key may be either a special key on the keyboard or the
435 ALT key; otherwise ESC followed by the key X works as well, and C-M-x
436 means to press the key X together with both Control and Meta.
437 .Pp
438 Keys are usually a single character, like
439 .Sq p
440 or
441 .Sq n ,
442 but some special keys are accepted as well.
443 .Pp
444 .Bl -tag -width 16m -offset indent -compact
445 .It <up>
446 Up arrow
447 .It <down>
448 Down arrow
449 .It <left>
450 Left arrow
451 .It <right>
452 Right arrow
453 .It <prior>
454 Previous page/Page up
455 .It <next>
456 Next page/Page down
457 .It <home>
458 Home
459 .It <end>
460 End
461 .It <f0> thru <f63>
462 Function keys
463 .It del or backspace
464 Backspace
465 .It esc
466 Escape
467 .It space or spc
468 Space
469 .It enter or ret
470 Enter
471 .It tab
472 Tab
473 .It backtab
474 Depends on the configuration of the terminal emulator; usually shift
475 tab.
476 .El
477 .Ss GNU Emacs-like keys
478 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
479 .It C-p
480 previous-line
481 .It C-n
482 next-line
483 .It C-f
484 forward-char
485 .It C-b
486 backward-char
487 .It M-{
488 backward-paragraph
489 .It M-}
490 forward-paragraph
491 .It C-a
492 move-beginning-of-line
493 .It C-e
494 move-end-of-line
495 .It M-v, M-space
496 scroll-up
497 .It C-v, space
498 scroll-down
499 .It M-<
500 beginning-of-buffer
501 .It M->
502 end-of-buffer
503 .It C-x C-c
504 kill-telescope
505 .It C-g
506 clear-minibuf
507 .It M-x
508 execute-extended-command
509 .It C-c {
510 dec-fill-column
511 .It C-c }
512 inc-fill-column
513 .It C-c p
514 previous-heading
515 .It C-c n
516 next-heading
517 .It >
518 load-url
519 .It <
520 load-current-url
521 .It C-x C-f
522 load-url
523 .It C-x M-f
524 load-current-url
525 .It C-x o
526 other-window
527 .It C-x t 0
528 tab-close
529 .It C-x t 1
530 tab-close-other
531 .It C-x t 2
532 tab-new
533 .It C-x t o
534 tab-next
535 .It C-x t O
536 tab-previous
537 .It C-x t m
538 tab-move
539 .It C-x t M
540 tab-move-to
541 .It B, C-M-b
542 previous-page
543 .It F, C-M-f
544 next-page
545 .It <f7> a
546 bookmark-page
547 .It <f7> <f7>
548 list-bookmarks
549 .It C-z
550 suspend-telescope
551 .El
552 .Ss Xr vi 1 Ns -like keys
553 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
554 .It k
555 previous-line
556 .It j
557 next-line
558 .It l
559 forward-char
560 .It h
561 backward-char
562 .It {
563 backward-paragraph
564 .It }
565 forward-paragraph
566 .It ^
567 move-beginning-of-line
568 .It $
569 move-end-of-line
570 .It K
571 scroll-line-up
572 .It J
573 scroll-line-down
574 .It g g
575 beginning-of-buffer
576 .It G
577 end-of-buffer
578 .It g D
579 tab-close
580 .It g N
581 tab-new
582 .It g t
583 tab-next
584 .It g T
585 tab-previous
586 .It g M-t
587 tab-move
588 .It g M-T
589 tab-move-to
590 .It H
591 previous-page
592 .It L
593 next-page
594 .It q
595 kill-telescope
596 .It ESC
597 clear-minibuf
598 .It :
599 execute-extended-command
600 .El
601 .Ss CUA-like keys
602 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
603 .It <up>
604 previous-line
605 .It <down>
606 next-line
607 .It <right>
608 forward-char
609 .It <left>
610 backward-char
611 .It <home>
612 move-beginning-of-line
613 .It <end>
614 move-end-of-line
615 .It <prior>
616 scroll-up
617 .It <next>
618 scroll-down
619 .It C-w
620 tab-close
621 .It C-t
622 tab-new
623 .It M-<prior>
624 tab-previous
625 .It M-<next>
626 tab-next
627 .It M-<left>
628 previous-page
629 .It M-<right>
630 next-page
631 .It <f5>
632 reload-page
633 .It r
634 reload-page
635 .El
636 .Ss Neither Emacs nor vi specific
637 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
638 .It <f1>
639 toggle-help
640 .It enter
641 push-button
642 .It M-enter
643 push-button-new-tab
644 .It M-tab
645 previous-button
646 .It backtab
647 previous-button
648 .It tab
649 next-button
650 .It M-t
651 tab-select
652 .It \&[
653 tab-previous
654 .It \&]
655 tab-next
656 .It M-\&[
657 tab-move-to
658 .It M-\&]
659 tab-move
660 .It M-l
661 link-select
662 .It M-/
663 swiper
664 .El
665 .Ss Minibuffer-specific keys
666 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
667 .It enter
668 mini-complete-and-exit
669 .It C-g
670 mini-abort
671 .It ESC
672 mini-abort
673 .It C-d
674 mini-delete-char
675 .It del
676 mini-delete-backward-char
677 .It backspace
678 mini-delete-backward-char
679 .It C-h
680 mini-delete-backward-char
681 .It C-b
682 backward-char
683 .It C-f
684 forward-char
685 .It <left>
686 backward-char
687 .It <right>
688 forward-char
689 .It C-e
690 move-end-of-line
691 .It C-a
692 move-beginning-of-line
693 .It <end>
694 move-end-of-line
695 .It <home>
696 move-beginning-of-line
697 .It C-k
698 mini-kill-line
699 .It M-p
700 mini-previous-history-element
701 .It M-n
702 mini-next-history-element
703 .It C-p
704 previous-completion
705 .It C-n
706 next-completion
707 .It <up>
708 previous-completion
709 .It <down>
710 next-completion
711 .It tab
712 insert-current-candidate
713 .It M-<
714 mini-goto-beginning
715 .It M->
716 mini-goto-end
717 .El
718 .Sh INTERACTIVE COMMANDS
719 Follows the documentation for the interactive commands.
720 These commands can be bound to a key or executed with
721 .Ic execute-extended-command .
722 .Ss Movement commands
723 .Bl -tag -width execute-extended-command -compact
724 .It Ic backward-char
725 Move point one character backward.
726 .It Ic backward-paragraph
727 Move point one paragraph backward.
728 .It Ic beginning-of-buffer
729 Move point to the beginning of the buffer.
730 .It Ic end-of-buffer
731 Move point to the end of the buffer.
732 .It Ic forward-char
733 Move point one character forward.
734 .It Ic forward-paragraph
735 Move point one paragraph forward.
736 .It Ic insert-current-candidate
737 Copy the current selection text as minibuffer input.
738 .It Ic move-beginning-of-line
739 Move point at the beginning of the current (visual) line.
740 .It Ic move-end-of-line
741 Move point at the end of the current (visual) line.
742 .It Ic next-button
743 Move point to the next link.
744 .It Ic next-completion
745 Select the next completion.
746 .It Ic next-heading
747 Move point to the next heading.
748 .It Ic next-line
749 Move point to the next (visual) line, in the same column if possible.
750 .It Ic previous-button
751 Move point to the previous link.
752 .It Ic previous-completion
753 Select the previous completion.
754 .It Ic previous-heading
755 Move point to the previous heading.
756 .It Ic previous-line
757 Move point to the previous (visual) line.
758 .El
759 .Ss Bookmark-related commands
760 .Bl -tag -width execute-extended-command -compact
761 .It Ic bookmark-page
762 Save a page in the bookmark file.
763 It preloads the minibuffer with the current URL.
764 .It Ic list-bookmarks
765 Load the bookmarks page.
766 .El
767 .Ss Tab-related commands
768 .Bl -tag -width execute-extended-command -compact
769 .It Ic tab-close
770 Close the current tab.
771 .It Ic tab-close-other
772 Close all tabs but the current one.
773 .It Ic tab-move
774 Move the current tab after the next one, wrapping around if
775 needed.
776 .It Ic tab-move-to
777 Move the current tab before the previous one, wrapping around if needed.
778 .It Ic tab-new
779 Open a new tab.
780 .It Ic tab-next
781 Focus next tab, wrapping around eventually.
782 .It Ic tab-previous
783 Focus the previous tab, wrapping around eventually.
784 .It Ic tab-select
785 Switch to a tab using the minibuffer.
786 .El
787 .Ss Misc commands
788 .Bl -tag -width execute-extended-command -compact
789 .It Ic clear-minibuf
790 Clear the echo area.
791 .It Ic dec-fill-column
792 Decrement fill-column by two.
793 .It Ic execute-extended-command
794 Execute an internal command.
795 .It Ic kill-telescope
796 Quit
797 .Nm .
798 .It Ic inc-fill-column
799 Increment fill-column by two.
800 .It Ic link-select
801 Select and visit a link using the minibuffer.
802 .It Ic load-current-url
803 Edit the current URL.
804 .It Ic load-url
805 Prompt for an URL.
806 .It Ic next-page
807 Go forward in the page history.
808 .It Ic olivetti-mode
809 Toggle olivetti mode (i.e. horizontal centering of the lines of the
810 window.)
811 .It Ic other-window
812 Select the other window.
813 .It Ic previous-page
814 Go backward in the page history.
815 .It Ic push-button
816 Follow link at point, or toggle the visibility of the following
817 preformatted block if called when the cursor is on the heading of the block.
818 .It Ic push-button-new-tab
819 Follow link at point in a new tab.
820 .It Ic redraw
821 Redraw the screen, useful if some background program messed up the
822 display.
823 .It Ic reload-page
824 Reload the current page.
825 .It Ic scroll-down
826 Scroll down by one visual page.
827 .It Ic scroll-line-down
828 Scroll down by one line.
829 .It Ic scroll-line-up
830 Scroll up by one line.
831 .It Ic scroll-up
832 Scroll up by one visual page.
833 .It Ic suspend-telescope
834 Suspend the current
835 .Nm
836 session.
837 .It Ic swiper
838 Jump to a line using the minibuffer.
839 .It Ic toc
840 Jump to a heading using the minibuffer.
841 .It Ic toggle-help
842 Toggle side window with help about available keys and their associated
843 interactive command.
844 .It Ic toggle-pre-wrap
845 Toggle the wrapping of preformatted blocks.
846 .El
847 .Ss Minibuffer commands
848 .Bl -tag -width execute-extended-command -compact
849 .It Ic mini-abort
850 Abort the current minibuffer action.
851 .It Ic mini-complete-and-exit
852 Complete the current minibuffer action.
853 .It Ic mini-delete-backward-char
854 Delete the character before the point.
855 .It Ic mini-delete-char
856 Delete the character after the point.
857 .It Ic mini-goto-beginning
858 Select the first completion, if any.
859 .It Ic mini-goto-end
860 Select the last completion, if any.
861 .It Ic mini-kill-line
862 Delete from point until the end of the line.
863 .It Ic mini-next-history-element
864 Load the previous history element.
865 .It Ic mini-previous-history-element
866 Load the next history element.
867 .El
868 .Ss Aliases
869 The following aliases are available during
870 .Ic execute-extended-command :
871 .Bl -tag -width 16m -compact
872 .It Ic tabn
873 .Ic tab-next
874 .It Ic tabnew
875 .Ic tab-new
876 .It Ic tabp
877 .Ic tab-previous
878 .It Ic q No and Ic wq
879 .Ic kill-telescope
880 .El
881 .Sh ENVIRONMENT
882 When
883 .Nm
884 is started, it inspects the following environment variables:
885 .Bl -tag -width NO_COLORS
886 .It Ev HOME
887 The user's login directory.
888 .It Ev NO_COLORS
889 To decide whether to use colors or not.
890 The content of the variable doesn't matter.
891 .It Ev TERM
892 The user's terminal name.
893 .It Ev XDG_CACHE_HOME , Ev XDG_CONFIG_HOME , Ev XDG_DATA_HOME
894 If defined can alter the default location of the files used.
895 .El
896 .Sh FILES
897 By default
898 .Nm
899 follows the XDG Base Directory Specification.
900 However, if
901 .Pa ~/.telescope
902 exists, XDG is ignored and all the files are stored inside it.
903 The usage of
904 .Ev XDG_CACHE_HOME ,
905 .Ev XDG_CONFIG_HOME
906 and
907 .Ev XDG_DATA_HOME
908 can further alter the location of these files.
909 .Pp
910 .Bl -tag -width Ds -compact
911 .It Pa ~/.config/telescope/config
912 Default configuration file.
913 .It Pa ~/.local/share/telescope/pages/about_*.gmi
914 Overrides for built-in about: pages.
915 .It Pa ~/.local/share/telescope/bookmarks.gmi
916 Bookmarks file.
917 .It Pa ~/.local/share/telescope/known_hosts
918 Hash of the certificates for all the known hosts.
919 Each line contains three fields: hostname with optional port number,
920 hash of the certificate and a numeric flag.
921 .It Pa ~/.cache/telescope/lock
922 Lock file used to prevent multiple instance of
923 .Nm
924 from running at the same time.
925 .It Pa ~/.cache/telescope/session
926 The list of tabs from the last session.
927 Every line identifies a tab and contains three space-separated fields:
928 the full URL, a comma-separated list of attributes and the cached
929 title.
930 Is written by
931 .Ic kill-telescope
932 and loaded during startup.
933 .El
934 .Sh EXAMPLES
935 It's possible to browse
936 .Dq the small web
937 .Pq i.e. simple websites
938 by using programs like the duckling-proxy by defining a proxy in
939 .Pa ~/.config/telescope/config :
940 .Bd -literal -offset indent
941 proxy http via "gemini://127.0.0.1:1965"
942 proxy https via "gemini://127.0.0.1:1965"
943 .Ed
944 .Pp
945 To load
946 .Nm
947 without any configuration
948 .Bd -literal -offset indent
949 telescope -c /dev/null
950 .Ed
951 .Sh STANDARDS
952 .Rs
953 .%B XDG Base Directory Specification
954 .%U https://specifications.freedesktop.org/basedir-spec/latest/
955 .Re
956 .Sh AUTHORS
957 .An -nosplit
958 The
959 .Nm
960 program was written by
961 .An Omar Polo Aq Mt op@omarpolo.com .
962 .Sh CAVEATS
963 .Nm
964 assumes a UTF-8 environment and doesn't do anything to cope with other
965 encodings.
966 This can cause weird rendering issues if you're lucky, or possibly
967 worst things depending on your locale and terminal emulator.
968 .Sh BUGS
969 There's no UI for out-of-band certificates validation.