2024-05-16 00:07:16 +05:30
|
|
|
{ config, pkgs, ... }: {
|
2024-05-11 11:47:02 +05:30
|
|
|
programs = {
|
|
|
|
fd = {
|
|
|
|
enable = true;
|
|
|
|
ignores = [ ".git/" "node_modules/" ];
|
|
|
|
};
|
|
|
|
yazi = {
|
|
|
|
enable = true;
|
2024-11-24 13:19:23 +05:30
|
|
|
enableZshIntegration = false;
|
2024-05-13 00:33:44 +05:30
|
|
|
settings = {
|
|
|
|
manager = {
|
|
|
|
sort_by = "natural";
|
|
|
|
sort_dir_first = true;
|
2024-09-24 19:36:24 +05:30
|
|
|
show_hidden = false;
|
2024-05-13 00:33:44 +05:30
|
|
|
|
|
|
|
};
|
|
|
|
preview = {
|
|
|
|
image_filter = "lanczos3";
|
2024-05-14 23:15:50 +05:30
|
|
|
image_quality = 90;
|
2024-05-13 00:33:44 +05:30
|
|
|
};
|
2024-05-14 23:15:50 +05:30
|
|
|
opener = {
|
|
|
|
edit-text = [
|
2024-05-16 00:23:46 +05:30
|
|
|
{ run = ''${config.programs.neovim.package}/bin/nvim "$0"''; block = true; }
|
2024-05-14 23:15:50 +05:30
|
|
|
];
|
|
|
|
terminal = [
|
2024-05-16 00:23:46 +05:30
|
|
|
{ run = ''${config.programs.kitty.package}/bin/kitty --class=yazi -d="$0"''; orphan = true; }
|
2024-05-14 23:15:50 +05:30
|
|
|
];
|
2024-05-16 00:07:16 +05:30
|
|
|
open = [
|
2024-05-16 00:23:46 +05:30
|
|
|
{ run = ''${pkgs.xdg-utils}/bin/xdg-open "$0"''; orphan = true; }
|
2024-05-16 00:07:16 +05:30
|
|
|
];
|
2024-05-14 23:15:50 +05:30
|
|
|
};
|
|
|
|
open.rules = [
|
|
|
|
{ mime = "text/*"; use = [ "edit-text" ]; }
|
2024-05-16 00:07:16 +05:30
|
|
|
{ mime = "application/json"; use = [ "edit-text" ]; }
|
2024-05-14 23:15:50 +05:30
|
|
|
{ mime = "inode/directory"; use = [ "terminal" ]; }
|
2024-05-16 00:07:16 +05:30
|
|
|
{ mime = "*"; use = [ "open" ]; }
|
|
|
|
{ name = "*"; use = [ "open" ]; }
|
2024-05-14 23:15:50 +05:30
|
|
|
];
|
2024-05-13 00:33:44 +05:30
|
|
|
};
|
2024-05-11 11:47:02 +05:30
|
|
|
};
|
2024-05-11 11:42:55 +05:30
|
|
|
};
|
2024-05-11 11:47:02 +05:30
|
|
|
|
2023-04-08 18:32:45 +05:30
|
|
|
}
|