mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-24 17:53:51 -08:00
feat: move yazi and add image previews
This commit is contained in:
parent
997cdb92d2
commit
5463fb9487
2 changed files with 28 additions and 5 deletions
|
@ -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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -605,9 +605,4 @@
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
programs.yazi = {
|
|
||||||
enable = true;
|
|
||||||
enableBashIntegration = true;
|
|
||||||
enableFishIntegration = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue