summaryrefslogtreecommitdiff
path: root/files.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 /files.go
parentdfebc9013b5414e9a3c5f940704e831c31ce35d2 (diff)
start of a bubbletea TUI
Diffstat (limited to 'files.go')
-rw-r--r--files.go16
1 files changed, 9 insertions, 7 deletions
diff --git a/files.go b/files.go
index 4964750..b344e11 100644
--- a/files.go
+++ b/files.go
@@ -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{},
}