wip: unify default config
Some checks are pending
/ build (push) Waiting to run

This commit is contained in:
🪞👃🪞 2025-08-10 16:13:54 +03:00
parent 4d4c470a81
commit 50728729b7
8 changed files with 232 additions and 335 deletions

View file

@ -2,15 +2,15 @@ use crate::*;
#[derive(Debug)]
pub enum AppCommand {}
handle!(TuiIn:|self: App, input|{
panic!("wat: {:?}", self.profile);
for keys in self.profile.mode.keys.iter() {
panic!("wat: {:?}", self.mode);
for keys in self.mode.keys.iter() {
panic!("{keys} {:?}", self.config.binds.read().unwrap());
if let Some(binding) = self.config.binds.read().unwrap().get(keys.as_ref()) {
panic!("{binding:?}");
}
}
Ok(None)
//Ok(if let Some(binding) = self.profile.as_ref()
//Ok(if let Some(binding) = self.mode.as_ref()
//.map(|c|c.keys.dispatch(input.event())).flatten()
//{
//let binding = binding.clone();