summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-01-17 08:55:42 -0700
committertjp <tjp@ctrl-c.club>2024-01-17 08:55:42 -0700
commitdd2a06c1e1391fe6242015330b7c61fa37fd67cc (patch)
tree8b07e964f40f70de898046e5435c8932768f2b21 /state.go
parentdfebc9013b5414e9a3c5f940704e831c31ce35d2 (diff)
start of a bubbletea TUI
Diffstat (limited to 'state.go')
-rw-r--r--state.go11
1 files changed, 2 insertions, 9 deletions
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