diff options
| author | tjp <tjp@ctrl-c.club> | 2024-01-17 08:55:42 -0700 |
|---|---|---|
| committer | tjp <tjp@ctrl-c.club> | 2024-01-17 08:55:42 -0700 |
| commit | dd2a06c1e1391fe6242015330b7c61fa37fd67cc (patch) | |
| tree | 8b07e964f40f70de898046e5435c8932768f2b21 /state.go | |
| parent | dfebc9013b5414e9a3c5f940704e831c31ce35d2 (diff) | |
start of a bubbletea TUI
Diffstat (limited to 'state.go')
| -rw-r--r-- | state.go | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -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 |
