Open ghalestrilo opened 3 years ago
Create a settings screen where users can update and save their preferences.
Requires: Small input component, YAML lib
Def.: A :settings view, a rendering component (container), a state field (I think opts is working for now), a YAML lib and a startup routine.
:settings
opts
~/.seg/config.yml
Alt+S
Esc
:home
Enter
Create a settings screen where users can update and save their preferences.
Requires: Small input component, YAML lib
Def.: A
:settings
view, a rendering component (container), a state field (I thinkopts
is working for now), a YAML lib and a startup routine.~/.seg/config.yml
(in the future, this path can be an env var)opts
opts
are then overridden by command-line argsAlt+S
(or something) switches to:settings
Esc
returns to:home
Enter
triggers an input for changing the valueEnter
validates value, updates and saves settings file