feat: implement declarative scratchpads
This commit is contained in:
parent
d756c8a6a2
commit
b6502e1d8a
17 changed files with 549 additions and 78 deletions
|
|
@ -28,6 +28,7 @@ use {
|
|||
log_level::LogLevelParser,
|
||||
output::OutputsParser,
|
||||
repeat_rate::RepeatRateParser,
|
||||
scratchpad::ScratchpadsParser,
|
||||
shortcuts::{
|
||||
ComplexShortcutsParser, ShortcutsParser, ShortcutsParserError,
|
||||
parse_modified_keysym_str,
|
||||
|
|
@ -570,6 +571,13 @@ impl Parser for ConfigParser<'_> {
|
|||
}
|
||||
}
|
||||
}
|
||||
let mut scratchpads = vec![];
|
||||
if let Some(value) = scratchpads_val {
|
||||
match value.parse(&mut ScratchpadsParser(self.0)) {
|
||||
Ok(v) => scratchpads = v,
|
||||
Err(e) => log::warn!("Could not parse the scratchpads: {}", self.0.error(e)),
|
||||
}
|
||||
}
|
||||
Ok(Config {
|
||||
keymap,
|
||||
repeat_rate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue