foreseen

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

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

Better cli input handling, readme update

Diffstat:
MREADME | 2+-
Msrc/main.cpp | 7++++---
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/README b/README @@ -26,7 +26,7 @@ Open a specific site: Open a local gemtext file: gem-browser {path} -Start gem-browser with your default search engine: +Start gem-browser: gem-browser diff --git a/src/main.cpp b/src/main.cpp @@ -346,16 +346,17 @@ int main(int argc, char** argv) { std::string inputString = argv[1]; if(inputString.find("gemini://") == 0) { b.goToSite(argv[1], true); - } else { + } else if (inputString.find(':') == std::string::npos){ b.goToSite(std::string {"gemini://"} + argv[1], true); + } else { + b.goToSite(argv[1], true); } } } else { - b.goToSite(DEFAULT_SEARCH_ENGINE,true); + b.goToSite("about://newtab",true); } - int input = 0; // this is the main loop.