Home: Disable nnn + update yazi open/play/edit config
This commit is contained in:
@ -195,7 +195,7 @@ rec {
|
|||||||
neovide = true;
|
neovide = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nnn.enable = true;
|
nnn.enable = false;
|
||||||
|
|
||||||
rofi = {
|
rofi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -521,7 +521,6 @@ rec {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: Currently depends on nnn module. Create yazi module mirroring nnn module (deps etc.)
|
|
||||||
yazi = let
|
yazi = let
|
||||||
yazi-plugins = pkgs.fetchFromGitHub {
|
yazi-plugins = pkgs.fetchFromGitHub {
|
||||||
owner = "yazi-rs";
|
owner = "yazi-rs";
|
||||||
@ -541,11 +540,39 @@ rec {
|
|||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
shellWrapperName = "y";
|
shellWrapperName = "y";
|
||||||
|
|
||||||
|
# https://yazi-rs.github.io/docs/configuration/yazi
|
||||||
settings = {
|
settings = {
|
||||||
mgr = {
|
mgr = {
|
||||||
show_hidden = false;
|
show_hidden = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Associate mimetypes with edit/open/play actions
|
||||||
|
# open = {};
|
||||||
|
|
||||||
|
# Configure programs to edit/open/play files
|
||||||
|
opener = {
|
||||||
|
play = [
|
||||||
|
{
|
||||||
|
run = ''vlc "$@"'';
|
||||||
|
orphan = true;
|
||||||
|
for = "unix";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
edit = [
|
||||||
|
{
|
||||||
|
run = ''$EDITOR "$@"'';
|
||||||
|
block = true;
|
||||||
|
for = "unix";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
open = [
|
||||||
|
{
|
||||||
|
run = ''xdg-open "$@"'';
|
||||||
|
desc = "Open";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
preview = {
|
preview = {
|
||||||
max_width = 1000;
|
max_width = 1000;
|
||||||
max_height = 1000;
|
max_height = 1000;
|
||||||
|
Reference in New Issue
Block a user