mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
broot: allow multiple keyboard keys per verb
To allow multiple keys the verb options need to accept listOf str.
This commit is contained in:
parent
1d9b4a3e60
commit
800a191f33
1 changed files with 4 additions and 1 deletions
|
@ -15,7 +15,7 @@ let
|
||||||
modal = mkEnableOption "modal (vim) mode";
|
modal = mkEnableOption "modal (vim) mode";
|
||||||
|
|
||||||
verbs = mkOption {
|
verbs = mkOption {
|
||||||
type = with types; listOf (attrsOf (either bool str));
|
type = with types; listOf (attrsOf (oneOf [ bool str (listOf str) ]));
|
||||||
default = [ ];
|
default = [ ];
|
||||||
example = literalExpression ''
|
example = literalExpression ''
|
||||||
[
|
[
|
||||||
|
@ -46,6 +46,9 @@ let
|
||||||
`key` (optional)
|
`key` (optional)
|
||||||
: a keyboard key triggering execution
|
: a keyboard key triggering execution
|
||||||
|
|
||||||
|
`keys` (optional)
|
||||||
|
: multiple keyboard keys each triggering execution
|
||||||
|
|
||||||
`shortcut` (optional)
|
`shortcut` (optional)
|
||||||
: an alternate way to call the verb (without
|
: an alternate way to call the verb (without
|
||||||
the arguments part)
|
the arguments part)
|
||||||
|
|
Loading…
Reference in a new issue