mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-10-08 18:56:42 +02:00
more reorg; newtype Binds and Views
This commit is contained in:
parent
3e3276bed0
commit
f10fa309e5
27 changed files with 1017 additions and 892 deletions
11
src/cli.rs
11
src/cli.rs
|
|
@ -215,10 +215,12 @@ pub fn print_status (project: &Project) {
|
|||
pub fn print_config (config: &Config) {
|
||||
use ::ansi_term::Color::*;
|
||||
println!("{:?}", config.dirs);
|
||||
for (k, v) in config.views.try_read().unwrap().iter() {
|
||||
|
||||
config.views.for_each(|k, v|{
|
||||
println!("{} {} {}", Green.paint("VIEW"), Green.bold().paint(format!("{k:<16}")), v.source);
|
||||
}
|
||||
for (k, v) in config.binds.try_read().unwrap().iter() {
|
||||
});
|
||||
|
||||
config.binds.for_each(|k, v|{
|
||||
println!("{} {}", Green.paint("BIND"), Green.bold().paint(format!("{k:<16}")));
|
||||
for (k, v) in v.0.iter() {
|
||||
print!("{} ", &Yellow.paint(match &k.0 {
|
||||
|
|
@ -238,7 +240,8 @@ pub fn print_config (config: &Config) {
|
|||
//println!(" {:?}", v.source);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
config.modes.for_each(|k, v|{
|
||||
println!();
|
||||
for v in v.name.iter() { print!("{}", Green.bold().paint(format!("{v} "))); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue