Blob


1 .\" Copyright (c) 2021, 2022 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: January 05 2022$
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, usage and exit.
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 and exit.
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 max-killed-tabs
300 .Pq integer
301 The maximum number of closed tabs to keep track of, defaults to 10.
302 Must be a positive number; if zero, don't save closed tabs at all.
303 .It olivetti-mode
304 .Pq integer
305 If nonzero, enable
306 .Ic olivetti-mode
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 .It update-title
315 .Pq integer
316 If nonzero, set the terminal title to the page title.
317 Defaults to 1.
318 .El
319 .It Ic style Ar name Ar option
320 Change the styling of the element identified by
321 .Ar name .
322 Multiple options may be specified within curly braces.
323 Valid style identifiers are:
324 .Bl -tag -width line.download.ongoing -compact -offset Ds
325 .It line
326 the area outside the lines in the body of the page.
327 .It line.compl
328 the completions.
329 .It line.compl.current
330 the current completion.
331 .It line.help
332 text in the *Help* buffer.
333 .It line.download.ongoing
334 an ongoing download
335 .It line.download.done
336 a completed download
337 .It line.download.info
338 informational text in the *Downloads* buffer.
339 .It line.fringe
340 .Pq virtual
341 lines draw after the end of a buffer.
342 .It line.text
343 text lines.
344 .It line.link
345 link lines.
346 .It line.title1..3
347 headings
348 .It line.item
349 item lines.
350 .It line.quote
351 quotes.
352 .It line.pre.start
353 the heading of a preformatted block.
354 .It line.pre
355 the content of a preformatted block.
356 .It line.pre.end
357 the closing line of a preformatted block.
358 .It download
359 the download pane
360 .It minibuffer
361 the minibuffer.
362 .It modeline
363 the modeline.
364 .It tabline
365 the tabline.
366 .It tabline.tab
367 the non-focused tabs.
368 .It tabline.current
369 the focused tab.
370 .El
371 .Pp
372 Valid options are:
373 .Bl -tag -width Ds
374 .It Ic attr Ar prefix Oo Ar line Oo Ar trail Oc Oc
375 Sets the text attributes.
376 If only one value is given,
377 .Ar line
378 and
379 .Ar trail
380 default to that; if two values are given then
381 .Ar trail
382 defaults to
383 .Ar prefix .
384 Each attribute is a comma-separated list of keywords:
385 .Bl -tag -width underline -compact -offset Ds
386 .It Ic normal
387 no attributes.
388 .It Ic standout
389 best highlighting mode for the terminal.
390 .It Ic underline
391 underlines the text.
392 .It Ic reverse
393 reverses background/foreground colors.
394 .It Ic blink
395 makes the text blinking.
396 .It Ic dim
397 half bright.
398 .It Ic bold
399 extra bright or bold.
400 .El
401 .Pp
402 Only the style identifiers with the
403 .Dq line.
404 prefix accept up to three attributes.
405 The other will only use the first one given.
406 .It Ic bg Ar prefix Oo Ar line Oo Ar trail Oc Oc
407 Sets the background color.
408 Follows the same behaviour as
409 .Ic attr
410 regarding the optional parameters.
411 The colour is one of black, red, green, yellow, blue,
412 magenta, cyan and white; colour0 to colour255
413 .Pq or color0 to color255
414 from the 256-colour set;
415 default for the default colour.
416 .It Ic fg Ar prefix Oo Ar line Oo Ar trail Oc Oc
417 Sets the foreground color.
418 It behaves just like
419 .Ic bg .
420 .It Ic prefix Ar prfx Op Ar cont
421 Sets the prefix for the current line type to
422 .Ar prfx
423 and
424 .Ar cont
425 as the prefix for the continuation lines
426 .Pq i.e. when a long line gets wrapped.
427 If
428 .Ar cont
429 is not given its value will be the same of
430 .Ar prfx .
431 .El
432 .El
433 .Sh DEFAULT KEY BINDINGS
434 The default key bindings are very similar to GNU Emacs, but care has
435 been taken to include also bindings familiar for
436 .Xr vi 1
437 and
438 .Dq CUA
439 users.
440 In the following examples, C-x means Control-x, M-x means Meta-x,
441 where the Meta key may be either a special key on the keyboard or the
442 ALT key; otherwise ESC followed by the key X works as well, and C-M-x
443 means to press the key X together with both Control and Meta.
444 .Pp
445 Keys are usually a single character, like
446 .Sq p
447 or
448 .Sq n ,
449 but some special keys are accepted as well.
450 .Pp
451 .Bl -tag -width 16m -offset indent -compact
452 .It <up>
453 Up arrow
454 .It <down>
455 Down arrow
456 .It <left>
457 Left arrow
458 .It <right>
459 Right arrow
460 .It <prior>
461 Previous page/Page up
462 .It <next>
463 Next page/Page down
464 .It <home>
465 Home
466 .It <end>
467 End
468 .It <f0> thru <f63>
469 Function keys
470 .It del or backspace
471 Backspace
472 .It esc
473 Escape
474 .It space or spc
475 Space
476 .It enter or ret
477 Enter
478 .It tab
479 Tab
480 .It backtab
481 Depends on the configuration of the terminal emulator; usually shift
482 tab.
483 .El
484 .Ss GNU Emacs-like keys
485 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
486 .It C-p
487 previous-line
488 .It C-n
489 next-line
490 .It C-f
491 forward-char
492 .It C-b
493 backward-char
494 .It M-{
495 backward-paragraph
496 .It M-}
497 forward-paragraph
498 .It C-a
499 move-beginning-of-line
500 .It C-e
501 move-end-of-line
502 .It M-v, M-space
503 scroll-up
504 .It C-v, space
505 scroll-down
506 .It M-<
507 beginning-of-buffer
508 .It M->
509 end-of-buffer
510 .It C-x C-c
511 kill-telescope
512 .It C-g
513 clear-minibuf
514 .It M-x
515 execute-extended-command
516 .It C-c {
517 dec-fill-column
518 .It C-c }
519 inc-fill-column
520 .It C-c p
521 previous-heading
522 .It C-c n
523 next-heading
524 .It >
525 load-url
526 .It <
527 load-current-url
528 .It C-x C-f
529 load-url
530 .It C-x M-f
531 load-current-url
532 .It C-x o
533 other-window
534 .It C-x t 0
535 tab-close
536 .It C-x t 1
537 tab-close-other
538 .It C-x t 2
539 tab-new
540 .It C-x t o
541 tab-next
542 .It C-x t O
543 tab-previous
544 .It C-x t m
545 tab-move
546 .It C-x t M
547 tab-move-to
548 .It B, C-M-b
549 previous-page
550 .It F, C-M-f
551 next-page
552 .It <f7> a
553 bookmark-page
554 .It <f7> <f7>
555 list-bookmarks
556 .It C-z
557 suspend-telescope
558 .El
559 .Ss Xr vi 1 Ns -like keys
560 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
561 .It k
562 previous-line
563 .It j
564 next-line
565 .It l
566 forward-char
567 .It h
568 backward-char
569 .It {
570 backward-paragraph
571 .It }
572 forward-paragraph
573 .It ^
574 move-beginning-of-line
575 .It $
576 move-end-of-line
577 .It K
578 scroll-line-up
579 .It J
580 scroll-line-down
581 .It g g
582 beginning-of-buffer
583 .It G
584 end-of-buffer
585 .It g D
586 tab-close
587 .It g N
588 tab-new
589 .It g t
590 tab-next
591 .It g T
592 tab-previous
593 .It g M-t
594 tab-move
595 .It g M-T
596 tab-move-to
597 .It H
598 previous-page
599 .It L
600 next-page
601 .It u
602 tab-undo-close
603 .It q
604 kill-telescope
605 .It ESC
606 clear-minibuf
607 .It :
608 execute-extended-command
609 .El
610 .Ss CUA-like keys
611 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
612 .It <up>
613 previous-line
614 .It <down>
615 next-line
616 .It <right>
617 forward-char
618 .It <left>
619 backward-char
620 .It <home>
621 move-beginning-of-line
622 .It <end>
623 move-end-of-line
624 .It <prior>
625 scroll-up
626 .It <next>
627 scroll-down
628 .It C-w
629 tab-close
630 .It C-t
631 tab-new
632 .It M-<prior>
633 tab-previous
634 .It M-<next>
635 tab-next
636 .It del
637 previous-page
638 .It M-<left>
639 previous-page
640 .It M-<right>
641 next-page
642 .It <f5>
643 reload-page
644 .It r
645 reload-page
646 .El
647 .Ss Neither Emacs nor vi specific
648 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
649 .It <f1>
650 toggle-help
651 .It enter
652 push-button
653 .It M-enter
654 push-button-new-tab
655 .It M-tab
656 previous-button
657 .It backtab
658 previous-button
659 .It tab
660 next-button
661 .It M-t
662 tab-select
663 .It \&[
664 tab-previous
665 .It \&]
666 tab-next
667 .It M-\&[
668 tab-move-to
669 .It M-\&]
670 tab-move
671 .It M-l
672 link-select
673 .It M-/
674 swiper
675 .El
676 .Ss Minibuffer-specific keys
677 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
678 .It enter
679 mini-complete-and-exit
680 .It C-g
681 mini-abort
682 .It ESC
683 mini-abort
684 .It C-d
685 mini-delete-char
686 .It del
687 mini-delete-backward-char
688 .It backspace
689 mini-delete-backward-char
690 .It C-h
691 mini-delete-backward-char
692 .It C-b
693 backward-char
694 .It C-f
695 forward-char
696 .It <left>
697 backward-char
698 .It <right>
699 forward-char
700 .It C-e
701 move-end-of-line
702 .It C-a
703 move-beginning-of-line
704 .It <end>
705 move-end-of-line
706 .It <home>
707 move-beginning-of-line
708 .It C-k
709 mini-kill-line
710 .It M-p
711 mini-previous-history-element
712 .It M-n
713 mini-next-history-element
714 .It C-p
715 previous-completion
716 .It C-n
717 next-completion
718 .It <up>
719 previous-completion
720 .It <down>
721 next-completion
722 .It tab
723 insert-current-candidate
724 .It M-<
725 mini-goto-beginning
726 .It M->
727 mini-goto-end
728 .El
729 .Sh INTERACTIVE COMMANDS
730 Follows the documentation for the interactive commands.
731 These commands can be bound to a key or executed with
732 .Ic execute-extended-command .
733 .Ss Movement commands
734 .Bl -tag -width execute-extended-command -compact
735 .It Ic backward-char
736 Move point one character backward.
737 .It Ic backward-paragraph
738 Move point one paragraph backward.
739 .It Ic beginning-of-buffer
740 Move point to the beginning of the buffer.
741 .It Ic end-of-buffer
742 Move point to the end of the buffer.
743 .It Ic forward-char
744 Move point one character forward.
745 .It Ic forward-paragraph
746 Move point one paragraph forward.
747 .It Ic insert-current-candidate
748 Copy the current selection text as minibuffer input.
749 .It Ic move-beginning-of-line
750 Move point at the beginning of the current (visual) line.
751 .It Ic move-end-of-line
752 Move point at the end of the current (visual) line.
753 .It Ic next-button
754 Move point to the next link.
755 .It Ic next-completion
756 Select the next completion.
757 .It Ic next-heading
758 Move point to the next heading.
759 .It Ic next-line
760 Move point to the next (visual) line, in the same column if possible.
761 .It Ic previous-button
762 Move point to the previous link.
763 .It Ic previous-completion
764 Select the previous completion.
765 .It Ic previous-heading
766 Move point to the previous heading.
767 .It Ic previous-line
768 Move point to the previous (visual) line.
769 .El
770 .Ss Bookmark-related commands
771 .Bl -tag -width execute-extended-command -compact
772 .It Ic bookmark-page
773 Save a page in the bookmark file.
774 It preloads the minibuffer with the current URL.
775 .It Ic list-bookmarks
776 Load the bookmarks page.
777 .El
778 .Ss Tab-related commands
779 .Bl -tag -width execute-extended-command -compact
780 .It Ic tab-close
781 Close the current tab.
782 .It Ic tab-close-other
783 Close all tabs but the current one.
784 .It Ic tab-move
785 Move the current tab after the next one, wrapping around if
786 needed.
787 .It Ic tab-move-to
788 Move the current tab before the previous one, wrapping around if needed.
789 .It Ic tab-new
790 Open a new tab.
791 .It Ic tab-next
792 Focus next tab, wrapping around eventually.
793 .It Ic tab-previous
794 Focus the previous tab, wrapping around eventually.
795 .It Ic tab-select
796 Switch to a tab using the minibuffer.
797 .It Ic tab-undo-close
798 Re-open the most recently closed tab, if any.
799 .El
800 .Ss Misc commands
801 .Bl -tag -width execute-extended-command -compact
802 .It Ic clear-minibuf
803 Clear the echo area.
804 .It Ic dec-fill-column
805 Decrement fill-column by two.
806 .It Ic execute-extended-command
807 Execute an internal command.
808 .It Ic kill-telescope
809 Quit
810 .Nm .
811 .It Ic inc-fill-column
812 Increment fill-column by two.
813 .It Ic link-select
814 Select and visit a link using the minibuffer.
815 .It Ic load-current-url
816 Edit the current URL.
817 .It Ic load-url
818 Prompt for an URL.
819 .It Ic next-page
820 Go forward in the page history.
821 .It Ic olivetti-mode
822 Toggle olivetti mode (i.e. horizontal centering of the lines of the
823 window.)
824 .It Ic other-window
825 Select the other window.
826 .It Ic previous-page
827 Go backward in the page history.
828 .It Ic push-button
829 Follow link at point, or toggle the visibility of the following
830 preformatted block if called when the cursor is on the heading of the block.
831 .It Ic push-button-new-tab
832 Follow link at point in a new tab.
833 .It Ic redraw
834 Redraw the screen, useful if some background program messed up the
835 display.
836 .It Ic reload-page
837 Reload the current page.
838 .It Ic scroll-down
839 Scroll down by one visual page.
840 .It Ic scroll-line-down
841 Scroll down by one line.
842 .It Ic scroll-line-up
843 Scroll up by one line.
844 .It Ic scroll-up
845 Scroll up by one visual page.
846 .It Ic suspend-telescope
847 Suspend the current
848 .Nm
849 session.
850 .It Ic swiper
851 Jump to a line using the minibuffer.
852 .It Ic toc
853 Jump to a heading using the minibuffer.
854 .It Ic toggle-help
855 Toggle side window with help about available keys and their associated
856 interactive command.
857 .It Ic toggle-pre-wrap
858 Toggle the wrapping of preformatted blocks.
859 .El
860 .Ss Minibuffer commands
861 .Bl -tag -width execute-extended-command -compact
862 .It Ic mini-abort
863 Abort the current minibuffer action.
864 .It Ic mini-complete-and-exit
865 Complete the current minibuffer action.
866 .It Ic mini-delete-backward-char
867 Delete the character before the point.
868 .It Ic mini-delete-char
869 Delete the character after the point.
870 .It Ic mini-goto-beginning
871 Select the first completion, if any.
872 .It Ic mini-goto-end
873 Select the last completion, if any.
874 .It Ic mini-kill-line
875 Delete from point until the end of the line.
876 .It Ic mini-next-history-element
877 Load the previous history element.
878 .It Ic mini-previous-history-element
879 Load the next history element.
880 .El
881 .Ss Aliases
882 The following aliases are available during
883 .Ic execute-extended-command :
884 .Bl -tag -width 16m -compact
885 .It Ic tabn
886 .Ic tab-next
887 .It Ic tabnew
888 .Ic tab-new
889 .It Ic tabp
890 .Ic tab-previous
891 .It Ic q No and Ic wq
892 .Ic kill-telescope
893 .El
894 .Sh ENVIRONMENT
895 When
896 .Nm
897 is started, it inspects the following environment variables:
898 .Bl -tag -width NO_COLORS
899 .It Ev HOME
900 The user's login directory.
901 .It Ev NO_COLORS
902 To decide whether to use colors or not.
903 The content of the variable doesn't matter.
904 .It Ev TERM
905 The user's terminal name.
906 .It Ev XDG_CACHE_HOME , Ev XDG_CONFIG_HOME , Ev XDG_DATA_HOME
907 If defined can alter the default location of the files used.
908 .El
909 .Sh FILES
910 By default
911 .Nm
912 follows the XDG Base Directory Specification.
913 However, if
914 .Pa ~/.telescope
915 exists, XDG is ignored and all the files are stored inside it.
916 The usage of
917 .Ev XDG_CACHE_HOME ,
918 .Ev XDG_CONFIG_HOME
919 and
920 .Ev XDG_DATA_HOME
921 can further alter the location of these files.
922 .Pp
923 .Bl -tag -width Ds -compact
924 .It Pa ~/.config/telescope/config
925 Default configuration file.
926 .It Pa ~/.local/share/telescope/pages/about_*.gmi
927 Overrides for built-in about: pages.
928 .It Pa ~/.local/share/telescope/bookmarks.gmi
929 Bookmarks file.
930 .It Pa ~/.local/share/telescope/known_hosts
931 Hash of the certificates for all the known hosts.
932 Each line contains three fields: hostname with optional port number,
933 hash of the certificate and a numeric flag.
934 .It Pa ~/.cache/telescope/lock
935 Lock file used to prevent multiple instance of
936 .Nm
937 from running at the same time.
938 .It Pa ~/.cache/telescope/session
939 The list of tabs from the last session.
940 .El
941 .Sh EXAMPLES
942 It's possible to browse
943 .Dq the small web
944 .Pq i.e. simple websites
945 by using programs like the duckling-proxy by defining a proxy in
946 .Pa ~/.config/telescope/config :
947 .Bd -literal -offset indent
948 proxy http via "gemini://127.0.0.1:1965"
949 proxy https via "gemini://127.0.0.1:1965"
950 .Ed
951 .Pp
952 To load
953 .Nm
954 without any configuration
955 .Bd -literal -offset indent
956 telescope -c /dev/null
957 .Ed
958 .Sh STANDARDS
959 .Rs
960 .%B XDG Base Directory Specification
961 .%U https://specifications.freedesktop.org/basedir-spec/latest/
962 .Re
963 .Sh AUTHORS
964 .An -nosplit
965 The
966 .Nm
967 program was written by
968 .An Omar Polo Aq Mt op@omarpolo.com .
969 .Sh CAVEATS
970 .Nm
971 assumes a UTF-8 environment and doesn't try to cope with other encodings.
972 This can cause strange rendering issues if you're lucky, or possibly
973 weird thing happening depending on your locale and terminal emulator.
974 .Sh BUGS
975 There's no UI for out-of-band certificates validation.