Define new verbs. For more information, see Verb Definition Attributes in the broot documentation.
The possible attributes are:
invocation
(optional) : how the verb is called by the user, with placeholders for arguments
execution
(mandatory) : how the verb is executed
key
(optional) : a keyboard key triggering execution
shortcut
(optional) : an alternate way to call the verb (without the arguments part)
leave_broot
(optional) : whether to quit broot on execution (default: true
)
from_shell
(optional) : whether the verb must be executed from the parent shell (default: false
)
Declarations
Type
list of attribute set of (boolean or string)
Default
[ ]
Example
[
{ invocation = "p"; execution = ":parent"; }
{ invocation = "edit"; shortcut = "e"; execution = "$EDITOR {file}" ; }
{ invocation = "create {subpath}"; execution = "$EDITOR {directory}/{subpath}"; }
{ invocation = "view"; execution = "less {file}"; }
{
invocation = "blop {name}\\.{type}";
execution = "mkdir {parent}/{type} && ${pkgs.neovim}/bin/nvim {parent}/{type}/{name}.{type}";
from_shell = true;
}
]