feat: move yazi and add image previews

This commit is contained in:
Youwen Wu 2024-08-18 19:02:21 -07:00
parent 997cdb92d2
commit 5463fb9487
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 28 additions and 5 deletions

View file

@ -147,4 +147,32 @@
enableFishIntegration = true; enableFishIntegration = true;
enableBashIntegration = true; enableBashIntegration = true;
}; };
programs.yazi = {
enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
plugins = {
mediainfo = pkgs.fetchFromGitHub {
owner = "Ape";
repo = "mediainfo.yazi";
rev = "c69314e80f5b45fe87a0e06a10d064ed54110439";
hash = "sha256-8xdBPdKSiwB7iRU8DJdTHY+BjfR9D3FtyVtDL9tNiy4=";
};
};
settings = {
plugin = {
prepend_previewers = [
{
mime = "{image,audio,video}/*";
run = "mediainfo";
}
{
mime = "application/x-subrip";
run = "mediainfo";
}
];
};
};
};
} }

View file

@ -605,9 +605,4 @@
}) })
]; ];
}; };
programs.yazi = {
enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
};
} }