2024-10-11 23:27:07 +03:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
file = (pkgs.formats.toml { }).generate "YaziKeymapConfig" {
|
|
|
|
manager = {
|
|
|
|
prepend_keymap = [
|
|
|
|
{
|
2024-10-18 06:02:46 +03:00
|
|
|
desc = "Dangerous life";
|
2024-10-11 23:27:07 +03:00
|
|
|
on = "d";
|
|
|
|
run = "remove --permanently";
|
|
|
|
}
|
|
|
|
{
|
2024-10-18 06:02:46 +03:00
|
|
|
desc = "Dangerous life";
|
2024-10-11 23:27:07 +03:00
|
|
|
on = "D";
|
|
|
|
run = "remove --permanently --force";
|
|
|
|
}
|
|
|
|
{
|
2024-10-18 06:02:46 +03:00
|
|
|
desc = "Spawn shell here";
|
2024-10-11 23:27:07 +03:00
|
|
|
on = "<Enter>";
|
|
|
|
run = ''shell "SHELL_NAME=yazi $SHELL" --block --confirm'';
|
2024-10-17 22:38:47 +03:00
|
|
|
}
|
|
|
|
{
|
|
|
|
desc = "Open interactively";
|
|
|
|
on = "o";
|
|
|
|
run = "open --interactive";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
desc = "Open default";
|
|
|
|
on = "O";
|
|
|
|
run = "open";
|
2024-10-11 23:27:07 +03:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-06-22 23:34:03 +03:00
|
|
|
}
|