From dd2a06c1e1391fe6242015330b7c61fa37fd67cc Mon Sep 17 00:00:00 2001 From: tjp Date: Wed, 17 Jan 2024 08:55:42 -0700 Subject: start of a bubbletea TUI --- state.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'state.go') diff --git a/state.go b/state.go index c46862f..57767a8 100644 --- a/state.go +++ b/state.go @@ -2,13 +2,13 @@ package main import ( "net/url" - "time" "github.com/chzyer/readline" ) type BrowserState struct { *History + *Config Modal []byte @@ -20,10 +20,6 @@ type BrowserState struct { DefaultTour Tour CurrentTour *Tour - Quiet bool - Pager string - Timeout time.Duration - Readline *readline.Instance } @@ -59,10 +55,7 @@ func NewBrowserState(conf *Config) *BrowserState { Depth: 0, NavIndex: -1, }, - - Quiet: conf.Quiet, - Pager: conf.Pager, - Timeout: conf.Timeout.Duration, + Config: conf, } state.CurrentTour = &state.DefaultTour return state -- cgit v1.2.3