foreseen

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

commit 07ef03cea845f76bc1505c5f1e4cc5f003ff0ada
parent b31f428712e241487b8058f5688502473f545e34
Author: Andrew Laack <andrew@laack.co>
Date:   Sun,  4 Oct 2026 00:43:19 -0500

Updated todo

Diffstat:
MMakefile | 1-
MTODO.txt | 169+------------------------------------------------------------------------------
2 files changed, 2 insertions(+), 168 deletions(-)

diff --git a/Makefile b/Makefile @@ -67,4 +67,3 @@ test: pure-test browser-test fetch-test puppet-test rm -rf coverage.info .PHONY: test pure-test browser-test fetch-test puppet-test benchmark mem-leak-test clean install build debug server - diff --git a/TODO.txt b/TODO.txt @@ -1,168 +1,22 @@ -- saving files - - footprints mode - - download all files to disk for sites you access - - should show a message after download works - - should make the filename better - - lynx just yoinks the final part of the path, it seems - way to show where links go -- text search -- should reset y value when switching between some tabs - - persistent memory sometimes though. - - perhaps on the basis of a page? sort of wonder about that though; like should this be stored in browser and then perhaps - - returned when queried for to do rendering? prat of a site? probably not that, not totally sure though. - - should be able to highlight arbitrary text / jump to a position on command - - what would the abstraction look like for that? - - This would likely take as an input a line text and output a pair with start / stop chars for selection - - iff delta p_1 - p_0 > 0 then highlight this line. - ---- - -- multi-color lines - - decided against this because 1) this slows it down 2) this adds complexity 3) I don't like the look that much - - it looks a bit too busy (imo). - ---- - -- add site history. +- consideration for y-value memory in f/b history - horizontal scroll when lines are too long? -- make unordered list items indent correctly - - first line is normal, subsequent lines should have 2 spaces prefixing them - ---- - -- Certificate support - - Be able to: - x use a certificate (done) - - detect cert changes w/ tofu - - notify users about certificate requests (6x messages) - - in these cases we should just inform users of such things. - - handle caching - - prefetching should be disabled when passing certs - - this should be configured on the basis of a domain then - - two things here: - - we shouldn't prefetch for cert requests / domains - - we shouldn't use prefetched when we add a cert where we didn't have one before. - - ability to go left / right in input box. - auto-follow redirects based on domain? - A/y/n -- always, no, yes -- hmm, does this not work with redirects from the cli? - - foreseen gemini://larsthebear.me/ - - (seems so... perhaps I was on the non-updated version.) - ---- - -- is there a way to get a better name for a page - - perhaps heading is most recent h1? h2? h3? - downloading and interactions broadly should show more information - reloading should have progress / indication - perhaps I should just re-use the entry box for download (specify a file) / success type stuff? - I'm wary to make it too interactive as that might draw focus away from the text being read. - -- bookmarks - ---- - -- testing for all the ways to parse inputs / urls - ---- - -- 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 - ---- - -- bookmarks - ---- - - gotosite should return status code on failure to be shown to users - this will aid in understanding: - server unreachable - request rejected - cert issues - ... - ---- - -- some sort of rpc thing to do language tranlsations - ---- - -- finalize name + renaming - ---- - -- fix up the config.mk and makefile - ---- - -- BUGS: - - gemini://9e4.com - - that site just seems to ... hang? for like a long time, too long. - - back button seems to still sometimes go back to the same page I was on before - - page_0 -> page_1 -> redirect -> page_1 - - back should go to page_0 - -- TESTING CHANGES: - - add more asserts in my code so edges can be pushed - ---- - -- proper argparse - man pages -- refactor makefile to only generate coverage when requested. - ---- - -- setup headless execution - - getch passed to headless execution function as char -- open in text editor - - go to site -> vim buffer - - stdin? -- make sure keybindings are up to date on new tab page - -- multi-step builds - ---- - -- perf metrics / benchmarks -- handle downloading in tests... - ---- - -- refactoring so that everything can be changed via function inputs (no macros / globals / limit env) -- be able to edit the url -- better testing environment - - setup my own stuff - - faux search engine - - status code checkers, stuff like that - ---- - -- benchmark scrolling on large sites - - gemini://rawtext.club/~/samhunter/folklore/esr_jargon_file.txt - - very slow. - ---- - -- benchmarking - ---- - - if I enter some large fucking number like 120349871023948712304987 it searches because stoi probably fails, or our check does. -- would be better to hash the rendered site and then do it that way if possible? - -- prefetch prefetch (configurable lookahead) - - it's fucking annoying that it only looks ahead one step, like why? - +- localhost access - cleanups - function signatures (const, noexcept) - types @@ -170,27 +24,8 @@ - imports - tests - remove useless ones -- resetting y value on screen moves - ---- - -Bug: - -- can't open localhost from the 'o' menu - ---- - -- most pressing: cli argument for configuration - - should be able to disable prefetching, set cache size, set defaults, stuff like that. - put all colors into shared.hpp - - what should be the approach for configuration? - - should I just say update the shared.hpp file? - ---- - - detect if a file is not a normal text file - source code, txt, md, gmi, stuff like that - if not, give option to download site - this seems involved, but useful. - -----