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 /files.go | |
| parent | dfebc9013b5414e9a3c5f940704e831c31ce35d2 (diff) | |
start of a bubbletea TUI
Diffstat (limited to 'files.go')
| -rw-r--r-- | files.go | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -17,13 +17,14 @@ import ( ) type ConfigMain struct { - DefaultScheme string `toml:"default_scheme"` - SoftWrap int `toml:"soft_wrap"` - DownloadFolder string `toml:"download_folder"` - VimKeys bool `toml:"vim_keys"` - Quiet bool `toml:"quiet"` - Pager string `toml:"pager"` - Timeout duration `toml:"duration"` + DefaultScheme string `toml:"default_scheme"` + SoftWrap int `toml:"soft_wrap"` + DownloadFolder string `toml:"download_folder"` + VimKeys bool `toml:"vim_keys"` + Quiet bool `toml:"quiet"` + Pager string `toml:"pager"` + Timeout duration `toml:"duration"` + SavedHistoryDepth int `toml:"saved_history_depth"` } type Config struct { @@ -63,6 +64,7 @@ func getConfig() (*Config, error) { Timeout: duration{ time.Duration(10 * time.Second), }, + SavedHistoryDepth: 30, }, Handlers: map[string]string{}, } |
