add option to hide unbound actions in hotkey overlay (#1618)

* add option to hide unbound actions in hotkey overlay

* fix config test, add some docs

* Add kdl language hint

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

* Improve docs

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

* hide_unbound -> hide_not_bound

* forgot to rename in wiki

* filter actions before calling format

* use any instead of contains

* retain instead of filter

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
This commit is contained in:
Kent Daleng
2025-06-03 19:31:18 +02:00
committed by GitHub
parent a7186a0441
commit abac28a65c
3 changed files with 21 additions and 0 deletions
+3
View File
@@ -1031,6 +1031,8 @@ pub struct Struts {
pub struct HotkeyOverlay {
#[knuffel(child)]
pub skip_at_startup: bool,
#[knuffel(child)]
pub hide_not_bound: bool,
}
#[derive(knuffel::Decode, Debug, Default, Clone, Copy, PartialEq, Eq)]
@@ -4610,6 +4612,7 @@ mod tests {
},
hotkey_overlay: HotkeyOverlay {
skip_at_startup: true,
hide_not_bound: false,
},
animations: Animations {
off: false,