2021-08-31 18:52:20 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.broot = {
|
|
|
|
enable = true;
|
|
|
|
modal = true;
|
|
|
|
};
|
|
|
|
|
2021-09-26 11:08:45 +02:00
|
|
|
test.stubs.broot = { };
|
2021-08-31 18:52:20 +02:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/broot/conf.toml
|
|
|
|
assertFileContent home-files/.config/broot/conf.toml ${
|
|
|
|
pkgs.writeText "broot.expected" ''
|
|
|
|
modal = true
|
|
|
|
|
|
|
|
[[verbs]]
|
|
|
|
execution = ":parent"
|
|
|
|
invocation = "p"
|
|
|
|
|
|
|
|
[[verbs]]
|
|
|
|
execution = "$EDITOR {file}"
|
|
|
|
invocation = "edit"
|
|
|
|
shortcut = "e"
|
|
|
|
|
|
|
|
[[verbs]]
|
|
|
|
execution = "$EDITOR {directory}/{subpath}"
|
|
|
|
invocation = "create {subpath}"
|
|
|
|
|
|
|
|
[[verbs]]
|
|
|
|
execution = "less {file}"
|
|
|
|
invocation = "view"
|
|
|
|
|
|
|
|
[skin]
|
|
|
|
''
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|