2
0
mirror of https://github.com/xvxx/phetch synced 2024-11-10 13:10:54 +00:00
phetch/doc/phetch.1

335 lines
6.6 KiB
Groff
Raw Normal View History

2020-09-26 19:43:26 +00:00
.\" Generated by scdoc 1.11.0
.\" Complete documentation for this program is not available as a GNU info page
2020-01-08 21:14:44 +00:00
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.nh
.ad l
.\" Begin generated content:
2020-11-11 23:51:20 +00:00
.TH "PHETCH" "1" "2020-11-11"
2020-01-08 21:14:44 +00:00
.P
.SH NAME
.P
phetch - quick lil gopher client
.P
.SH SYNOPSIS
.P
\fBphetch\fR [\fIOPTIONS\fR] [\fIURL\fR]
.P
2020-01-11 04:19:54 +00:00
.SH DESCRIPTION
.P
\fBphetch\fR is a terminal client designed to help you quickly navigate
the gophersphere. It features non-nonsense keyboard navigation,
support for most Gopher features, easy-to-use TLS and Tor support, as
well as bookmarking and history features.
.P
Usually \fBphetch\fR is started with a Gopher URL:
.P
.RS 4
phetch gopher://some-gopher-url.com
.P
.RE
If no URL is given, however, \fBphetch\fR will launch and open its default
"start page". This can be configured to be any URL. (See \fBCONFIG\fR.)
.P
2020-01-08 21:14:44 +00:00
.SH OPTIONS
.P
\fB-l\fR, \fB--local\fR
.RS 4
2020-01-09 03:09:24 +00:00
Connect to the local Gopher server at URL \fI127.0.0.1:7070\fR.
2020-01-08 21:14:44 +00:00
.P
.RE
\fB-p\fR \fIURL\fR, \fB--print\fR \fIURL\fR
.RS 4
2020-01-09 03:09:24 +00:00
Print a rendered Gopher server response of \fIURL\fR and exit.
2020-01-08 21:14:44 +00:00
.P
.RE
\fB-r\fR \fIURL\fR, \fB--raw\fR \fIURL\fR
.RS 4
2020-01-09 03:09:24 +00:00
Print the raw Gopher server response of \fIURL\fR and exit.
2020-01-08 21:14:44 +00:00
.P
.RE
2020-01-11 22:06:34 +00:00
\fB-s\fR, \fB--tls\fR
2020-01-08 21:14:44 +00:00
.RS 4
2020-01-11 22:06:34 +00:00
Attempt to fetch all pages securely over TLS.
2020-01-08 21:14:44 +00:00
.P
.RE
2020-01-11 23:14:38 +00:00
\fB-S\fR, \fB--no-tls\fR
.RS 4
Do not use TLS for connections. This can be used to cancel out an
option set in the config file, for instance.
.P
.RE
2020-01-11 22:06:34 +00:00
\fB-o\fR, \fB--tor\fR
2020-01-11 03:01:58 +00:00
.RS 4
Make all connections using a local Tor proxy.
2020-01-11 23:14:38 +00:00
Tor is The Onion Router.
2020-01-11 03:01:58 +00:00
Set the TOR_PROXY env variable to use an address other than the
Tor default of 127.0.0.1:9050.
.P
.RE
2020-01-11 23:14:38 +00:00
\fB-O\fR, \fB--no-tor\fR
.RS 4
Disable Tor.
.P
.RE
2020-10-23 20:15:59 +00:00
\fB-w\fR, \fB--wrap\fR \fICOLUMN\fR
.RS 4
Wrap long lines in Gopher "text" views at \fICOLUMN\fR.
Default: 0 (off)
.P
.RE
2020-05-30 18:17:40 +00:00
\fB-m\fR, \fB--media\fR \fIPATH\fR
.RS 4
Use program at \fIPATH\fR to open media files (movies and sounds).
Default: mpv
.P
.RE
\fB-M\fR, \fB--no-media\fR
.RS 4
Don't try to open media files. Download them like regular binary
Gopher items.
.P
.RE
2020-01-11 23:14:38 +00:00
\fB-c\fR, \fB--config\fR \fIFILE\fR
.RS 4
Use \fIFILE\fR instead of \fI~/.config/phetch/phetch.conf\fR
.P
.RE
\fB-C\fR, \fB--no-config\fR
.RS 4
Do not use any config file.
.P
.RE
2020-01-08 21:14:44 +00:00
\fB-h\fR, \fB--help\fR
.RS 4
Print a help summary and exit.
.P
.RE
\fB-v\fR, \fB--version\fR
.RS 4
Print version information and exit.
.P
.RE
.SH NOTES
.P
2020-01-09 03:09:24 +00:00
When given a \fIURL\fR, \fBphetch\fR will show the requested Gopher page and
2020-01-08 21:14:44 +00:00
enter interactive mode.
.P
Without a \fIURL\fR, \fBphetch\fR will show a builtin dashboard with easy
access to online help, bookmarks and history, and enter interactive
mode.
.P
2020-01-11 23:14:38 +00:00
Command line options always override options set in phetch.conf.
.P
2020-01-08 21:14:44 +00:00
.SH NAVIGATION
.P
.SS KEYBOARD SHORTCUTS
.P
All single letter commands also work with the \fBCtrl\fR key: e.g., \fBh\fR
and \fBCtrl-h\fR are synonyms.
.P
\fBh\fR
.RS 4
Go to builtin help page.
.RE
\fBq\fR
.RS 4
Quit \fBphetch\fR.
.P
.RE
2020-01-08 21:26:48 +00:00
\fBleft arrow\fR
2020-01-08 21:14:44 +00:00
.RS 4
Go back in history.
.RE
2020-01-08 21:26:48 +00:00
\fBright arrow\fR
2020-01-08 21:14:44 +00:00
.RS 4
Go forward in history.
.RE
2020-01-08 21:26:48 +00:00
\fBup arrow\fR, \fBp\fR, \fBk\fR
2020-01-08 21:14:44 +00:00
.RS 4
Select previous link.
.RE
2020-01-08 21:26:48 +00:00
\fBdown arrow\fR, \fBn\fR, \fBj\fR
2020-01-08 21:14:44 +00:00
.RS 4
Select next link.
.RE
2020-01-08 21:26:48 +00:00
\fBPgUp\fR, \fB-\fR
2020-01-08 21:14:44 +00:00
.RS 4
2020-01-08 21:26:48 +00:00
Scroll up by many lines.
2020-01-08 21:14:44 +00:00
.RE
2020-01-08 21:26:48 +00:00
\fBPgDn\fR, \fBSPACE\fR
2020-01-08 21:14:44 +00:00
.RS 4
2020-01-08 21:26:48 +00:00
Scroll down by many lines.
2020-01-08 21:14:44 +00:00
.P
.RE
\fBNumber key\fR
.RS 4
Open/select link.
.RE
\fBEnter\fR
.RS 4
Open current link.
.RE
\fBEsc\fR, \fBCtrl-c\fR
.RS 4
Cancel
.P
.RE
\fBf\fR, \fB/\fR
.RS 4
Find link in page.
.P
.RE
\fBg\fR
.RS 4
2020-01-09 03:09:24 +00:00
Go to Gopher URL.
2020-01-08 21:14:44 +00:00
.RE
\fBu\fR
.RS 4
2020-09-26 19:43:26 +00:00
Edit URL. (Can be used to reload the current page.)
2020-01-08 21:14:44 +00:00
.RE
\fBy\fR
.RS 4
Copy URL.
.P
.RE
\fBb\fR
.RS 4
Show bookmarks.
.RE
\fBs\fR
.RS 4
Save bookmark.
.RE
\fBa\fR
.RS 4
2020-01-08 21:26:48 +00:00
Show history. (Mnemonic: \fBAll\fR pages/history)
2020-01-08 21:14:44 +00:00
.P
.RE
\fBr\fR
.RS 4
View raw source.
.RE
\fBw\fR
.RS 4
Toggle wide mode.
2020-11-11 23:51:20 +00:00
.RE
\fBe\fR
.RS 4
Toggle encoding between UTF8 and CP437.
2020-01-08 21:14:44 +00:00
.P
.RE
.SS MENU NAVIGATION
.P
Up and down arrows
.RS 4
Use the up and down arrows, \fBj\fR and \fBk\fR keys, or \fBn\fR and \fBp\fR
2020-01-11 04:19:54 +00:00
keys to select links. \fBphetch\fR will scroll for you, or you can
2020-01-08 21:14:44 +00:00
use page up and page down (or \fB-\fR and spacebar) to scroll by
many lines at once.
.P
.RE
Number keys
.RS 4
If there are few enough menu items, pressing a number key will
open a link. Otherwise, the first matching number will be
selected. Use \fBEnter\fR to open the selected link.
.P
.RE
Incremental search
.RS 4
Press \fBf\fR or \fB/\fR to activate search mode, then just start
2020-01-11 04:19:54 +00:00
typing. \fBphetch\fR will look for the first case-insensitive match
2020-01-08 21:26:48 +00:00
and try to select it. Use arrow keys or \fBCtrl-p\fR/\fBCtrl-n\fR to cycle
through matches.
2020-01-08 21:14:44 +00:00
.P
.RE
.SH BOOKMARKS
.P
There are two ways to save the URL of the current page:
.P
\fBy\fR
.RS 4
Copy URL.
.RE
\fBs\fR
.RS 4
Save bookmark.
.P
.RE
Bookmarks will be saved to the file \fI~/.config/phetch/bookmarks.gph\fR if
the directory \fI~/.config/phetch/\fR exists.
.P
\fBb\fR
.RS 4
View saved bookmarks.
.P
.RE
The clipboard function uses \fBpbcopy\fR on MacOS, and \fBxsel\fR \fI-sel clip\fR
on Linux.
.P
.SH HISTORY
.P
2020-01-09 03:09:24 +00:00
If you create a \fIhistory.gph\fR file in \fI~/.config/phetch/\fR, each Gopher
2020-01-08 21:14:44 +00:00
URL you open will be stored there.
.P
New URLs are appended to the bottom, but loaded in reverse order, so
2020-05-30 18:17:40 +00:00
you'll see all the most recently visited pages first when you press
2020-01-08 21:26:48 +00:00
the \fBa\fR key.
2020-01-08 21:14:44 +00:00
.P
Feel free to edit your history file directly, or share it with your
friends!
.P
2020-01-11 04:19:54 +00:00
.SH CONFIG
.P
If you create a \fIphetch.conf\fR file in \fI~/.config/phetch/\fR, it will be
automatically loaded when \fBphetch\fR starts. The config file supports
2020-01-12 00:30:51 +00:00
most command line options, for your convenience, as well as a few ways
to customize your browsing experience. For example, \fBphetch\fR will
always launch in TLS mode if `tls yes` appears in the config file --
no need to pass `--tls` or `-t` on startup.
2020-01-11 04:19:54 +00:00
.P
Here is an example config with all options:
.P
.nf
.RS 4
# Page to load when launched with no URL argument\&.
start gopher://phetch/1/home
# Always use TLS mode\&. (--tls)
tls no
# Connect using local TOR proxy\&. (--tor)
tor no
2020-01-12 00:30:51 +00:00
# Always start in wide mode\&.
2020-01-11 04:19:54 +00:00
wide no
2020-05-30 18:17:40 +00:00
# Program to use to open media files\&.
media mpv
2020-01-12 00:30:51 +00:00
# Use emoji indicators for TLS & Tor\&.
2020-01-11 04:19:54 +00:00
emoji no
.fi
.RE
.P
2020-05-30 18:17:40 +00:00
.SH MEDIA PLAYER SUPPORT
.P
\fBphetch\fR includes support for opening video files (`;` item type) and
sound files (`s` item type) in `mpv` or an application of your choice
using the `-m` command line flag. To test it out, visit a compatible
Gopher server or check out the "gopher types" help page by lauching
\fBphetch\fR and then pressing `ctrl-h` then `3`.
.P
2020-01-08 21:14:44 +00:00
.SH ABOUT
.P
2020-01-11 20:55:33 +00:00
\fBphetch\fR is maintained by chris west, and released under the MIT license.
2020-01-08 21:14:44 +00:00
.P
2020-01-11 04:19:54 +00:00
phetch's Gopher hole:
2020-01-08 21:14:44 +00:00
.RS 4
\fIgopher://phkt.io/1/phetch\fR
.RE
2020-01-11 04:19:54 +00:00
phetch's webpage:
2020-01-08 21:14:44 +00:00
.RS 4
2020-01-11 20:55:33 +00:00
\fIhttps://github.com/xvxx/phetch\fR