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