2024-11-25 18:29:33 -08:00
|
|
|
_: {
|
|
|
|
keys = rec {
|
2024-11-25 19:05:18 -08:00
|
|
|
mk = mode: key: action: desc: {
|
2024-11-25 18:29:33 -08:00
|
|
|
inherit mode key action;
|
|
|
|
options = {
|
|
|
|
inherit desc;
|
|
|
|
silent = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-11-25 19:05:18 -08:00
|
|
|
mk' = mode: key: action:
|
|
|
|
mk mode key action null;
|
2024-11-25 18:29:33 -08:00
|
|
|
|
2024-11-25 19:05:18 -08:00
|
|
|
mkWithOpts = mode: key: action: desc: opts:
|
|
|
|
(mk mode key action desc)
|
2024-11-25 18:29:33 -08:00
|
|
|
// {
|
|
|
|
options = opts;
|
|
|
|
};
|
|
|
|
|
2024-11-25 19:05:18 -08:00
|
|
|
mkWithOpts' = mode: key: action: opts:
|
|
|
|
mkWithOpts mode key action null opts;
|
2024-11-25 18:29:33 -08:00
|
|
|
};
|
|
|
|
}
|