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