foreseen

A text-based gemini browser with prefetching.
git clone git://git.laack.co/foreseen.git
Log | Files | Refs | README | LICENSE

commit 584e892b3cacb0c90c13de6981ae70e8e6a18e92
parent f3e01437c8be4ab1eb3ca740a4d996c1cb36ae8c
Author: Andrew Laack <andrew@laack.co>
Date:   Sun, 27 Sep 2026 12:07:57 -0500

Improved readme

Diffstat:
MREADME | 26+++++++++++++++++---------
MTODO.txt | 10+++++++++-
Msrc/main.cpp | 2+-
3 files changed, 27 insertions(+), 11 deletions(-)

diff --git a/README b/README @@ -8,20 +8,30 @@ C++ compiler, make, openssl, ncurses Installation ============ -TBD +Edit config.mk to match your local setup if necessary for building (gem-browser +will be installed into /usr/local/bin by default). +Then run the following command to build and install gem-browser: + make install + +(the above command may require root, depending on the installation location) Usage ===== -TBD +Open a specific site: + gem-browser {url} + +(gemini:// is optional) +Open a local gemtext file: + gem-browser {path} + +Start gem-browser with your default search engine: + gem-browser -Examples -======== -TBD Identities -========= +========== These are specified in: $HOME/.gb/{hostname}/client.crt $HOME/.gb/{hostname}/client.key @@ -39,10 +49,8 @@ Example: (I recommend symlinking ~/.gb to somewhere you backup regularly) -NOTE: You must have $HOME set in your shell. - Example command to generate keys: - openssl req -x509 -newkey rsa:2048 -nodes -days 3650 -keyout client.key -out client.crt -subj "/CN=yourname" + openssl req -x509 -newkey rsa:2048 -nodes -days 3650 -keyout client.key -out client.crt -subj "/CN=localhost" Caching ======= diff --git a/TODO.txt b/TODO.txt @@ -70,4 +70,12 @@ --- -- +- background doesn't update with resizing when using a popup + +--- + +- the following flow is strange: + - start on site + - enter information into a status code 10 input + - status code 10 sends me back to where I just was +- basically, it's weird that pressing back would ever send you to the same page you were on before; same with forwards diff --git a/src/main.cpp b/src/main.cpp @@ -352,7 +352,7 @@ int main(int argc, char** argv) { } } else { - b.goToSite("gemini://tlgs.one",true); + b.goToSite(DEFAULT_SEARCH_ENGINE,true); }