Skip to content

Commit

Permalink
improve the README
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Apr 27, 2024
1 parent 080472b commit 643d116
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_LIBMAGIC=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_GOPHER=0 WITH_GOPHERS=0 WITH_SPARTAN=0 WITH_FINGER=0
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_TITAN=0 WITH_GOPHER=0 WITH_GOPHERS=0 WITH_SPARTAN=0 WITH_FINGER=0 WITH_GUPPY=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_GOPHER=0 WITH_GOPHERS=1
alpine:
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_LIBMAGIC=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_GOPHER=0 WITH_GOPHERS=0 WITH_SPARTAN=0 WITH_FINGER=0 WITH_GUPPY=0
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_TITAN=0 WITH_GOPHER=0 WITH_GOPHERS=0 WITH_SPARTAN=0 WITH_FINGER=0 WITH_GUPPY=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_GOPHER=0 WITH_GOPHERS=1
arch:
Expand Down Expand Up @@ -106,6 +106,6 @@ jobs:
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_LIBMAGIC=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_GOPHER=0 WITH_GOPHERS=0 WITH_SPARTAN=0 WITH_FINGER=0 WITH_GUPPY=0
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_TITAN=0 WITH_GOPHER=0 WITH_GOPHERS=0 WITH_SPARTAN=0 WITH_FINGER=0 WITH_GUPPY=0
make clean
CFLAGS="-O0 -Wall -Wextra -pedantic -Wno-unused-result -Werror" make WITH_GOPHER=0 WITH_GOPHERS=1
34 changes: 30 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ gplaces is originally a Gemini port of the delve Gopher client by Sebastian Stei
## Features

* SSH-style TOFU with $XDG_DATA_HOME/gplaces_hosts or ~/.gplaces_hosts
* client certificates support via $XDG_DATA_HOME/gplaces_$host$path.{crt,key} or ~/.gplaces_$host$path.{crt,key}
* client certificates support via $XDG_DATA_HOME/gplaces_$host_$port_$path.{crt,key} or ~/.gplaces_$host_$port_$path.{crt,key}
* subscriptions
* permanent redirects with $XDG_DATA_HOME/gplaces_redirects or ~/.gplaces_redirects
* support for non-interactive operation
* configurable MIME type handlers
* single configuration file: $XDG_DATA_HOME/gplacesrc, ~/.gplacesrc or /etc/gplacesrc
* configurable MIME type handlers, with support for streaming to stdin
* "powerful" shell with tab completion, hints and aliases
* VT100 compatible with ANSI escape sequences and NO_COLOR support
* sh-style history with $XDG_DATA_HOME/gplaces_history or ~/.gplaces_history
Expand All @@ -48,7 +49,7 @@ gplaces is originally a Gemini port of the delve Gopher client by Sebastian Stei

* clone this repo: `git clone --recursive https://github.com/dimkr/gplaces`
* type `cd gplaces`
* type `make` or `make WITH_LIBIDN2=0 WITH_LIBIDN=0 WITH_LIBMAGIC=0`
* type `make PREFIX=/usr CONFDIR=/etc`, or `make WITH_TITAN=0 WITH_GOPHER=0 WITH_GOPHERS=0 WITH_SPARTAN=0 WITH_FINGER=0 WITH_GUPPY=0 WITH_LIBIDN2=0 WITH_LIBIDN=0 WITH_LIBMAGIC=0` to disable all optional dependencies and features
* type `make install` to install it on the system (defaults to /usr/local)

## How to use?
Expand All @@ -74,7 +75,7 @@ use the arrow keys to scroll, `/` to search and `q` to exit less and return to t
(reverse-i-search `g') gemini.circumlunar.space
```

in addition, gplaces adds the page URL to the history: use the `Up` and `Down` keys to navigate through the history, or `CTRL+r` to search through it. these are only three examples of key bindings from shells like bash(1) which work in gplaces, too.
in addition, gplaces adds the page URL to the history: use the `Up` and `Down` keys to navigate through the history, or `CTRL+r` to search through it. these are only three examples of key bindings from shells like bash(1) which work in gplaces, too: see bestline/README.md for a list of navigation and editing shortcuts.

```
cached 2023-04-29 19:41:44
Expand All @@ -89,6 +90,13 @@ if you visit the same page again, gplaces will return a cached copy and show the

gplaces displays only Gemtext, gophermaps or plain text files: it downloads other kinds of files (like images, audio and video) to temporary files and runs external "handler" programs (one for each file type) defined in the gplaces configuration file.

```
~$ flatpak run --command=sh com.github.dimkr.gplaces
~$ cp /app/etc/gplacesrc $XDG_CONFIG_HOME/
~$ exit
~$ xdg-open ~/.var/app/com.github.dimkr.gplaces/config
```

```
> save gemini.circumlunar.space/docs/specification.gmi
enter filename: /home/user/Downloads/specification.gmi
Expand Down Expand Up @@ -151,6 +159,24 @@ to exit gplaces, press `CTRL+d`.

additional documentation and more details are available in `man gplaces`. type `help` and press `ENTER` to see short descriptions of available commands.

## How to configure?

if installed through Flatpak, copy the read-only configuration file to your home directory so you can edit:

```
~$ flatpak run --command=sh com.github.dimkr.gplaces
~$ cp /app/etc/gplacesrc $XDG_CONFIG_HOME/
~$ exit
~$ xdg-open ~/.var/app/com.github.dimkr.gplaces/config
```

otherwise, you can edit /etc/gplacesrc directly or edit a copy under your home directory:

```
~$ cp /etc/gplacesrc $XDG_CONFIG_HOME/
~$ xdg-open $XDG_CONFIG_HOME/gplacesrc
```

## License

=> LICENSE GPLv3

0 comments on commit 643d116

Please sign in to comment.