nix/home/config/yazi/module/Keymap.nix

34 lines
654 B
Nix
Raw Normal View History

2024-06-22 23:34:03 +03:00
{ pkgs, ... }: {
2024-08-26 11:55:43 +03:00
file = (pkgs.formats.toml {}).generate "YaziKeymapConfig" {
manager = {
prepend_keymap = [
{
on = "d";
run = "remove --permanently";
desc = "Dangerous life.";
}
{
on = "D";
run = "remove --permanently --force";
desc = "Dangerous life.";
}
2024-10-05 11:46:04 +03:00
{
on = "a";
run = "create --dir";
desc = "Who wants files anyway?";
}
2024-10-05 11:55:47 +03:00
{
on = "A";
run = "create --force";
desc = "I want, sometimes.";
}
2024-10-11 21:56:23 +03:00
{
on = "<Enter>";
run = ''shell "SHELL_NAME=yazi $SHELL" --block --confirm'';
desc = "Spawn shell here.";
}
];
2024-08-26 11:55:43 +03:00
};
};
2024-06-22 23:34:03 +03:00
}