mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-08-07 22:17:07 +02:00
refactor: Mode, View, Bind
This commit is contained in:
parent
51faa82d74
commit
701a651fbd
21 changed files with 901 additions and 880 deletions
|
|
@ -208,7 +208,7 @@ pub fn tek_print_config (config: &Config) {
|
|||
}
|
||||
}
|
||||
}
|
||||
for (k, v) in config.modes.read().unwrap().iter() {
|
||||
config.modes.for_each(|k, v|{
|
||||
println!();
|
||||
for v in v.name.iter() { print!("{}", Green.bold().paint(format!("{v} "))); }
|
||||
for v in v.info.iter() { print!("\n{}", Green.paint(format!("{v}"))); }
|
||||
|
|
@ -216,22 +216,16 @@ pub fn tek_print_config (config: &Config) {
|
|||
print!("\n{}", Blue.paint("KEYS"));
|
||||
for v in v.keys.iter() { print!("{}", Green.paint(format!(" {v}"))); }
|
||||
println!();
|
||||
for (k, v) in v.modes.read().unwrap().iter() {
|
||||
print!("{} {} {:?}",
|
||||
Blue.paint("MODE"),
|
||||
Green.bold().paint(format!("{k:<16}")),
|
||||
v.name);
|
||||
print!(" INFO={:?}",
|
||||
v.info);
|
||||
print!(" VIEW={:?}",
|
||||
v.view);
|
||||
println!(" KEYS={:?}",
|
||||
v.keys);
|
||||
}
|
||||
v.modes.for_each(|k, v|{
|
||||
print!("{} {} {:?}", Blue.paint("MODE"), Green.bold().paint(format!("{k:<16}")), v.name);
|
||||
print!( " INFO={:?}", v.info);
|
||||
print!( " VIEW={:?}", v.view);
|
||||
println!(" KEYS={:?}", v.keys);
|
||||
});
|
||||
print!("{}", Blue.paint("VIEW"));
|
||||
for v in v.view.iter() { print!("{}", Green.paint(format!(" {v}"))); }
|
||||
println!();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
pub fn tek_print_status (project: &Arrangement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue