gemini-browser

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

commit 23a3160a81d8c2362f4ce8b3b2f7758874927b63
parent fd6bf4d2d074fa02a58282ffe1871803c4556c19
Author: Andrew Laack <andrew@laack.co>
Date:   Sat,  9 May 2026 21:03:48 -0500

Scroll back when loading pages; short term improvement

Diffstat:
Mmain.go | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/main.go b/main.go @@ -33,7 +33,7 @@ var ( // TODO: Possibly replace this with a cache; it will be annoying to persist the page position // but it's nice to have that when traversing links - // TODO: There also seems to be some other form of state that messes with history traversal. + // TODO: There also seems to be some other form of state that messes with history traversal. history *Node linkSelectionText string @@ -190,6 +190,8 @@ func updateSite(newUrl string, reuseNode bool) error { } site.siteContent = result + // TODO: Is there a way to persist this across history for niceness e.g. seek line you were on before? + mainText.ScrollToBeginning() site.statusCode = resp.Status return nil } @@ -328,6 +330,7 @@ func main() { }) app.SetRoot(mainArea, true).SetFocus(mainArea) + err := app.Run() if err != nil {