foreseen

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

commit e1c9e40e30051483182138a29341d84f5f5ee672
parent 4d10e1e5d43e84be093bdc9ff3f04a6c047587d8
Author: Andrew Laack <andrew@laack.co>
Date:   Mon, 28 Sep 2026 17:42:38 -0500

Renamed gemi -> foreseen

Diffstat:
MMakefile | 8++++----
MREADME | 28++++++++++++++--------------
MTODO.txt | 2+-
Msrc/identity-manager.cpp | 2+-
Msrc/main.cpp | 2+-
5 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,16 +1,16 @@ include config.mk debug: - ${DCOMMAND_P} src/main.cpp ${DCOMMAND_S} -o gemi.out + ${DCOMMAND_P} src/main.cpp ${DCOMMAND_S} -o foreseen.out build: - ${COMMAND_P} src/main.cpp ${COMMAND_S} -o gemi.out + ${COMMAND_P} src/main.cpp ${COMMAND_S} -o foreseen.out install: build - cp gemi.out ${PREFIX}/bin/gemi + cp foreseen.out ${PREFIX}/bin/foreseen clean: - rm -rf test*.out gemi.out + rm -rf test*.out foreseen.out browser-test: ${TCOMMAND_P} tests/browser-test.cpp ${TCOMMAND_S} -o test1.out diff --git a/README b/README @@ -1,6 +1,6 @@ -gemi -==== -A gemini browser, written in C++. +foreseen +======== +The gemini browser that looks into the future. Requirements ============ @@ -8,10 +8,10 @@ C++ compiler, make, openssl, ncurses Installation ============ -Edit config.mk to match your local setup if necessary for building (gemi +Edit config.mk to match your local setup if necessary for building (foreseen will be installed into /usr/local/bin by default). -Then run the following command to build and install gemi: +Then run the following command to build and install foreseen: make install (the above command may require root, depending on the installation location) @@ -19,15 +19,15 @@ Then run the following command to build and install gemi: Usage ===== Open a specific site: - gemi {url} + foreseen {url} (gemini:// is optional) Open a local gemtext file: - gemi {path} + foreseen {path} -Start gemi: - gemi +Start foreseen: + foreseen Identities @@ -37,17 +37,17 @@ These are specified in: $HOME/.gmi/{hostname}/client.key Or for a non-standard port (port != 1965): - $HOME/.gemi/{hostname}:{port}/client.crt - $HOME/.gemi/{hostname}:{port}/client.key + $HOME/.foreseen/{hostname}:{port}/client.crt + $HOME/.foreseen/{hostname}:{port}/client.key Example: - > tree .gemi - .gemi + > tree .foreseen + .foreseen └── bbs.geminispace.org ├── client.crt └── client.key -(I recommend symlinking ~/.gemi to somewhere you backup regularly) +(I recommend symlinking ~/.foreseen to somewhere you backup regularly) Example command to generate keys: openssl req -x509 -newkey rsa:2048 -nodes -days 3650 -keyout client.key -out client.crt -subj "/CN=localhost" diff --git a/TODO.txt b/TODO.txt @@ -49,7 +49,7 @@ - auto-follow redirects based on domain? - A/y/n -- always, no, yes - hmm, does this not work with redirects from the cli? - - gemi gemini://larsthebear.me/ + - foreseen gemini://larsthebear.me/ - (seems so... perhaps I was on the non-updated version.) --- diff --git a/src/identity-manager.cpp b/src/identity-manager.cpp @@ -16,7 +16,7 @@ Identity IdentityManager::getIdentityForURI(uri destination) { } namespace fs = std::filesystem; - fs::path certDir = fs::path(getHome()) / ".gemi"; + fs::path certDir = fs::path(getHome()) / ".foreseen"; std::string host = destination.get_host(); std::string name = host; if (destination.get_port() && destination.get_port() != 1965) { diff --git a/src/main.cpp b/src/main.cpp @@ -440,7 +440,7 @@ int main(int argc, char** argv) { if(clk != nullptr) { ds.header = clk->getLinkDestination().to_string(); } else { - ds.header = "gemi"; + ds.header = "foreseen"; } auto* st = b.getCurrentSite();