summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-01-08 11:10:24 -0700
committertjp <tjp@ctrl-c.club>2024-01-08 11:10:24 -0700
commita90327bcc0f46171e30a4a549fb5b44f8e91e303 (patch)
tree8595b256c8e9fa2232525199c51021e0efbebac4 /state.go
parent230933ee0e4bce6ddf25e0816fff0bd30e3c8864 (diff)
identity management and use
Diffstat (limited to 'state.go')
-rw-r--r--state.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/state.go b/state.go
index 6a6c885..a967b7b 100644
--- a/state.go
+++ b/state.go
@@ -13,6 +13,8 @@ type BrowserState struct {
Marks map[string]string
+ Identities Identities
+
NamedTours map[string]*Tour
DefaultTour Tour
CurrentTour *Tour
@@ -48,13 +50,16 @@ type Link struct {
Prompt bool
}
-func NewBrowserState() *BrowserState {
+func NewBrowserState(conf *Config) *BrowserState {
state := &BrowserState{
History: &History{
Url: nil,
Depth: 0,
NavIndex: -1,
},
+
+ Quiet: conf.Quiet,
+ Pager: conf.Pager,
}
state.CurrentTour = &state.DefaultTour
return state