Skip to repository content19 lines · 528 B · rust
tenant.openagents/omega
No repository description is available.
OpenAgents Git authority 2026-07-28T02:54:52.814Z Public web read
NIP-34 coordinate
30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omegaMaintainersHidden in public view
References2 branches · 1 tag
Read-only clone
git clone https://openagents.com/git/tenant.openagents/omega.gitBrowse files
which_key_settings.rs
1use settings::{RegisterSetting, Settings, SettingsContent, WhichKeySettingsContent};
2
3#[derive(Debug, Clone, Copy, RegisterSetting)]
4pub struct WhichKeySettings {
5 pub enabled: bool,
6 pub delay_ms: u64,
7}
8
9impl Settings for WhichKeySettings {
10 fn from_settings(content: &SettingsContent) -> Self {
11 let which_key: &WhichKeySettingsContent = content.which_key.as_ref().unwrap();
12
13 Self {
14 enabled: which_key.enabled.unwrap(),
15 delay_ms: which_key.delay_ms.unwrap(),
16 }
17 }
18}
19