Fixed deserializing macro labels/names from .toml keymap

pull/3958/head
Nylme 2024-11-19 08:09:21 +11:00 committed by Matthew Cheely
parent ba9a21921d
commit 5f82a359a3
1 changed files with 9 additions and 0 deletions

View File

@ -272,6 +272,15 @@ impl<'de> serde::de::Visitor<'de> for KeyTrieVisitor {
doc: label, doc: label,
})) }))
} }
// To label/name macro commands from config
Some(MappableCommand::Macro { keys, .. }) if !label.is_empty() => {
Ok(KeyTrie::MappableCommand(MappableCommand::Macro {
keys,
name: label
}))
}
Some(command) => Ok(KeyTrie::MappableCommand(command)), Some(command) => Ok(KeyTrie::MappableCommand(command)),
} }
Some(commands) => { Some(commands) => {