add cursor and struct for settings

This commit is contained in:
2023-02-21 22:43:09 -08:00
parent 009c198cde
commit b813a818fe

View File

@@ -21,6 +21,9 @@ const (
settings Cursor = iota settings Cursor = iota
graph graph
commitLog commitLog
authors SettingsCursor = iota
repos
) )
type ( type (
@@ -44,8 +47,15 @@ type (
Repos []string Repos []string
Table table.Model Table table.Model
} }
Settings struct{} SettingsCursor int
Graph struct { Settings struct {
AllAuthors []string
SelectedAuthors []string
AllRepos []string
SelectedRepos []string
cursor SettingsCursor
}
Graph struct {
Selected int Selected int
Year int Year int
Repos []string Repos []string