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 02 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 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 change-title
254 .Pq integer
255 If nonzero, set the terminal title to the page title.
256 Defaults to 1.
257 .It dont-wrap-pre
258 .Pq integer
259 If nonzero, don't wrap preformatted blocks.
260 Defaults to 0.
261 .It download-path
262 .Pq string
263 The default download path.
264 Defaults to
265 .Pa /tmp .
266 .It emojify-link
267 .Pq integer
268 If nonzero, when the text of a link starts with an emoji followed by a
269 space, use that emoji as line prefix.
270 Defaults to 1.
271 .It enable-colors
272 .Pq integer
273 If nonzero, enable colours.
274 Defaults to 0 if
275 .Ev NO_COLORS
276 is set, 1 otherwise.
277 .It fill-column
278 .Pq integer
279 If greater than zero, lines of text will be formatted in a way that
280 don't exceed the given number of columns.
281 Defaults to 80.
282 .It hide-pre-blocks
283 .Pq integer
284 If nonzero, hide by default the body of the preformatted blocks.
285 Defaults to zero.
286 .Ic push-button
287 can be used to toggle the visibility per-block.
288 .It hide-pre-closing-line
289 .Pq integer
290 If nonzero, hide the closing line of preformatted blocks.
291 Defaults to 0.
292 .It hide-pre-context
293 .Pq integer
294 If nonzero, hide the start and end line of the preformatted blocks.
295 If both hide-pre-context and hide-pre-blocks are nonzero, preformatted
296 blocks are irremediably hidden.
297 Defaults to zero.
298 .It new-tab-url
299 .Pq string
300 URL for the new tab page.
301 Defaults to
302 .Dq about:new .
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 .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 del
628 previous-page
629 .It M-<left>
630 previous-page
631 .It M-<right>
632 next-page
633 .It <f5>
634 reload-page
635 .It r
636 reload-page
637 .El
638 .Ss Neither Emacs nor vi specific
639 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
640 .It <f1>
641 toggle-help
642 .It enter
643 push-button
644 .It M-enter
645 push-button-new-tab
646 .It M-tab
647 previous-button
648 .It backtab
649 previous-button
650 .It tab
651 next-button
652 .It M-t
653 tab-select
654 .It \&[
655 tab-previous
656 .It \&]
657 tab-next
658 .It M-\&[
659 tab-move-to
660 .It M-\&]
661 tab-move
662 .It M-l
663 link-select
664 .It M-/
665 swiper
666 .El
667 .Ss Minibuffer-specific keys
668 .Bl -tag -width xxxxxxxxxxxx -offset indent -compact
669 .It enter
670 mini-complete-and-exit
671 .It C-g
672 mini-abort
673 .It ESC
674 mini-abort
675 .It C-d
676 mini-delete-char
677 .It del
678 mini-delete-backward-char
679 .It backspace
680 mini-delete-backward-char
681 .It C-h
682 mini-delete-backward-char
683 .It C-b
684 backward-char
685 .It C-f
686 forward-char
687 .It <left>
688 backward-char
689 .It <right>
690 forward-char
691 .It C-e
692 move-end-of-line
693 .It C-a
694 move-beginning-of-line
695 .It <end>
696 move-end-of-line
697 .It <home>
698 move-beginning-of-line
699 .It C-k
700 mini-kill-line
701 .It M-p
702 mini-previous-history-element
703 .It M-n
704 mini-next-history-element
705 .It C-p
706 previous-completion
707 .It C-n
708 next-completion
709 .It <up>
710 previous-completion
711 .It <down>
712 next-completion
713 .It tab
714 insert-current-candidate
715 .It M-<
716 mini-goto-beginning
717 .It M->
718 mini-goto-end
719 .El
720 .Sh INTERACTIVE COMMANDS
721 Follows the documentation for the interactive commands.
722 These commands can be bound to a key or executed with
723 .Ic execute-extended-command .
724 .Ss Movement commands
725 .Bl -tag -width execute-extended-command -compact
726 .It Ic backward-char
727 Move point one character backward.
728 .It Ic backward-paragraph
729 Move point one paragraph backward.
730 .It Ic beginning-of-buffer
731 Move point to the beginning of the buffer.
732 .It Ic end-of-buffer
733 Move point to the end of the buffer.
734 .It Ic forward-char
735 Move point one character forward.
736 .It Ic forward-paragraph
737 Move point one paragraph forward.
738 .It Ic insert-current-candidate
739 Copy the current selection text as minibuffer input.
740 .It Ic move-beginning-of-line
741 Move point at the beginning of the current (visual) line.
742 .It Ic move-end-of-line
743 Move point at the end of the current (visual) line.
744 .It Ic next-button
745 Move point to the next link.
746 .It Ic next-completion
747 Select the next completion.
748 .It Ic next-heading
749 Move point to the next heading.
750 .It Ic next-line
751 Move point to the next (visual) line, in the same column if possible.
752 .It Ic previous-button
753 Move point to the previous link.
754 .It Ic previous-completion
755 Select the previous completion.
756 .It Ic previous-heading
757 Move point to the previous heading.
758 .It Ic previous-line
759 Move point to the previous (visual) line.
760 .El
761 .Ss Bookmark-related commands
762 .Bl -tag -width execute-extended-command -compact
763 .It Ic bookmark-page
764 Save a page in the bookmark file.
765 It preloads the minibuffer with the current URL.
766 .It Ic list-bookmarks
767 Load the bookmarks page.
768 .El
769 .Ss Tab-related commands
770 .Bl -tag -width execute-extended-command -compact
771 .It Ic tab-close
772 Close the current tab.
773 .It Ic tab-close-other
774 Close all tabs but the current one.
775 .It Ic tab-move
776 Move the current tab after the next one, wrapping around if
777 needed.
778 .It Ic tab-move-to
779 Move the current tab before the previous one, wrapping around if needed.
780 .It Ic tab-new
781 Open a new tab.
782 .It Ic tab-next
783 Focus next tab, wrapping around eventually.
784 .It Ic tab-previous
785 Focus the previous tab, wrapping around eventually.
786 .It Ic tab-select
787 Switch to a tab using the minibuffer.
788 .El
789 .Ss Misc commands
790 .Bl -tag -width execute-extended-command -compact
791 .It Ic clear-minibuf
792 Clear the echo area.
793 .It Ic dec-fill-column
794 Decrement fill-column by two.
795 .It Ic execute-extended-command
796 Execute an internal command.
797 .It Ic kill-telescope
798 Quit
799 .Nm .
800 .It Ic inc-fill-column
801 Increment fill-column by two.
802 .It Ic link-select
803 Select and visit a link using the minibuffer.
804 .It Ic load-current-url
805 Edit the current URL.
806 .It Ic load-url
807 Prompt for an URL.
808 .It Ic next-page
809 Go forward in the page history.
810 .It Ic olivetti-mode
811 Toggle olivetti mode (i.e. horizontal centering of the lines of the
812 window.)
813 .It Ic other-window
814 Select the other window.
815 .It Ic previous-page
816 Go backward in the page history.
817 .It Ic push-button
818 Follow link at point, or toggle the visibility of the following
819 preformatted block if called when the cursor is on the heading of the block.
820 .It Ic push-button-new-tab
821 Follow link at point in a new tab.
822 .It Ic redraw
823 Redraw the screen, useful if some background program messed up the
824 display.
825 .It Ic reload-page
826 Reload the current page.
827 .It Ic scroll-down
828 Scroll down by one visual page.
829 .It Ic scroll-line-down
830 Scroll down by one line.
831 .It Ic scroll-line-up
832 Scroll up by one line.
833 .It Ic scroll-up
834 Scroll up by one visual page.
835 .It Ic suspend-telescope
836 Suspend the current
837 .Nm
838 session.
839 .It Ic swiper
840 Jump to a line using the minibuffer.
841 .It Ic toc
842 Jump to a heading using the minibuffer.
843 .It Ic toggle-help
844 Toggle side window with help about available keys and their associated
845 interactive command.
846 .It Ic toggle-pre-wrap
847 Toggle the wrapping of preformatted blocks.
848 .El
849 .Ss Minibuffer commands
850 .Bl -tag -width execute-extended-command -compact
851 .It Ic mini-abort
852 Abort the current minibuffer action.
853 .It Ic mini-complete-and-exit
854 Complete the current minibuffer action.
855 .It Ic mini-delete-backward-char
856 Delete the character before the point.
857 .It Ic mini-delete-char
858 Delete the character after the point.
859 .It Ic mini-goto-beginning
860 Select the first completion, if any.
861 .It Ic mini-goto-end
862 Select the last completion, if any.
863 .It Ic mini-kill-line
864 Delete from point until the end of the line.
865 .It Ic mini-next-history-element
866 Load the previous history element.
867 .It Ic mini-previous-history-element
868 Load the next history element.
869 .El
870 .Ss Aliases
871 The following aliases are available during
872 .Ic execute-extended-command :
873 .Bl -tag -width 16m -compact
874 .It Ic tabn
875 .Ic tab-next
876 .It Ic tabnew
877 .Ic tab-new
878 .It Ic tabp
879 .Ic tab-previous
880 .It Ic q No and Ic wq
881 .Ic kill-telescope
882 .El
883 .Sh ENVIRONMENT
884 When
885 .Nm
886 is started, it inspects the following environment variables:
887 .Bl -tag -width NO_COLORS
888 .It Ev HOME
889 The user's login directory.
890 .It Ev NO_COLORS
891 To decide whether to use colors or not.
892 The content of the variable doesn't matter.
893 .It Ev TERM
894 The user's terminal name.
895 .It Ev XDG_CACHE_HOME , Ev XDG_CONFIG_HOME , Ev XDG_DATA_HOME
896 If defined can alter the default location of the files used.
897 .El
898 .Sh FILES
899 By default
900 .Nm
901 follows the XDG Base Directory Specification.
902 However, if
903 .Pa ~/.telescope
904 exists, XDG is ignored and all the files are stored inside it.
905 The usage of
906 .Ev XDG_CACHE_HOME ,
907 .Ev XDG_CONFIG_HOME
908 and
909 .Ev XDG_DATA_HOME
910 can further alter the location of these files.
911 .Pp
912 .Bl -tag -width Ds -compact
913 .It Pa ~/.config/telescope/config
914 Default configuration file.
915 .It Pa ~/.local/share/telescope/pages/about_*.gmi
916 Overrides for built-in about: pages.
917 .It Pa ~/.local/share/telescope/bookmarks.gmi
918 Bookmarks file.
919 .It Pa ~/.local/share/telescope/known_hosts
920 Hash of the certificates for all the known hosts.
921 Each line contains three fields: hostname with optional port number,
922 hash of the certificate and a numeric flag.
923 .It Pa ~/.cache/telescope/lock
924 Lock file used to prevent multiple instance of
925 .Nm
926 from running at the same time.
927 .It Pa ~/.cache/telescope/session
928 The list of tabs from the last session.
929 Every line identifies a tab and contains three space-separated fields:
930 the full URL, a comma-separated list of attributes and the cached
931 title.
932 Is written by
933 .Ic kill-telescope
934 and loaded during startup.
935 .El
936 .Sh EXAMPLES
937 It's possible to browse
938 .Dq the small web
939 .Pq i.e. simple websites
940 by using programs like the duckling-proxy by defining a proxy in
941 .Pa ~/.config/telescope/config :
942 .Bd -literal -offset indent
943 proxy http via "gemini://127.0.0.1:1965"
944 proxy https via "gemini://127.0.0.1:1965"
945 .Ed
946 .Pp
947 To load
948 .Nm
949 without any configuration
950 .Bd -literal -offset indent
951 telescope -c /dev/null
952 .Ed
953 .Sh STANDARDS
954 .Rs
955 .%B XDG Base Directory Specification
956 .%U https://specifications.freedesktop.org/basedir-spec/latest/
957 .Re
958 .Sh AUTHORS
959 .An -nosplit
960 The
961 .Nm
962 program was written by
963 .An Omar Polo Aq Mt op@omarpolo.com .
964 .Sh CAVEATS
965 .Nm
966 assumes a UTF-8 environment and doesn't try to cope with other encodings.
967 This can cause strange rendering issues if you're lucky, or possibly
968 weird thing happening depending on your locale and terminal emulator.
969 .Sh BUGS
970 There's no UI for out-of-band certificates validation.