broot: allow multiple keyboard keys per verb

To allow multiple keys the verb options need to accept listOf str.
This commit is contained in:
xwjqv 2024-10-05 20:26:47 +02:00 committed by Robert Helgesson
parent 1d9b4a3e60
commit 800a191f33
Failed to generate hash of commit

View file

@ -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)