Depends on #308 (as otherwise the tests would fail because of clippy)
This PR includes some fixes / changes i had encountered while doing config v2, namely:
move YAML-Theme Structure to its own file
move TUI specific logic from lib::utils to tui::utils (and move tracker to own file)
refactor TUI config editor key modifier logic to have list and index from/to in one place (instead of being separated to lib and tui and being potentially inconsistent)
Also some more minor things:
move load_alacritty to a function on Alacritty itself
refactor lib::utils::playlist_get_absolute_pathbuf to have less allocations
refactor lib::config::key::key_from_str to report the key being unknown, de-duplicate function key parsing
add a constant for the config file-name
refactor lib::config::key::BindingForEvent::Display to reduce cases necessary for generation
derive Eq and Copy for lib::track::MediaType
This PR can be considered 1 of 3 (planned) PRs for config v2
Depends on #308 (as otherwise the tests would fail because of clippy)This PR includes some fixes / changes i had encountered while doing config v2, namely:
lib::utils
totui::utils
(and move tracker to own file)Also some more minor things:
load_alacritty
to a function onAlacritty
itselflib::utils::playlist_get_absolute_pathbuf
to have less allocationslib::config::key::key_from_str
to report the key being unknown, de-duplicate function key parsinglib::config::key::BindingForEvent::Display
to reduce cases necessary for generationEq
andCopy
forlib::track::MediaType
This PR can be considered 1 of 3 (planned) PRs for config v2