programs.broot.settings.verbs
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
keys (optional)
: multiple keyboard keys each 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)
- Type
list of attribute set of (boolean or string or list of 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; } ]- Declared
- <home-manager/modules/programs/broot.nix>