Skip to content

Commit

Permalink
broot: allow multiple keyboard keys per verb
Browse files Browse the repository at this point in the history
To allow multiple keys the verb options need to accept listOf str.
  • Loading branch information
xwjqv authored and rycee committed Oct 17, 2024
1 parent 1d9b4a3 commit 800a191
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/programs/broot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let
modal = mkEnableOption "modal (vim) mode";

verbs = mkOption {
type = with types; listOf (attrsOf (either bool str));
type = with types; listOf (attrsOf (oneOf [ bool str (listOf str) ]));
default = [ ];
example = literalExpression ''
[
Expand Down Expand Up @@ -46,6 +46,9 @@ let
`key` (optional)
: a keyboard key triggering execution
`keys` (optional)
: multiple keyboard keys each triggering execution
`shortcut` (optional)
: an alternate way to call the verb (without
the arguments part)
Expand Down

0 comments on commit 800a191

Please sign in to comment.