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