Updated yazi config
This commit is contained in:
@@ -6,7 +6,9 @@
|
|||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
wl-clipboard-rs
|
||||||
dragon-drop
|
dragon-drop
|
||||||
|
trash-cli
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
@@ -14,7 +16,16 @@
|
|||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
shellWrapperName = "y";
|
shellWrapperName = "y";
|
||||||
plugins = with pkgs.yaziPlugins; {
|
plugins = with pkgs.yaziPlugins; {
|
||||||
inherit git full-border chmod;
|
inherit
|
||||||
|
git
|
||||||
|
full-border
|
||||||
|
chmod
|
||||||
|
compress
|
||||||
|
wl-clipboard
|
||||||
|
recycle-bin
|
||||||
|
mount
|
||||||
|
lazygit
|
||||||
|
;
|
||||||
};
|
};
|
||||||
initLua = ''
|
initLua = ''
|
||||||
require("git"):setup {
|
require("git"):setup {
|
||||||
@@ -22,22 +33,116 @@
|
|||||||
order = 1500,
|
order = 1500,
|
||||||
}
|
}
|
||||||
require("full-border"):setup()
|
require("full-border"):setup()
|
||||||
|
require("recycle-bin"):setup()
|
||||||
'';
|
'';
|
||||||
keymap = {
|
keymap =
|
||||||
|
let
|
||||||
|
leader = "c";
|
||||||
|
in
|
||||||
|
{
|
||||||
mgr.prepend_keymap = [
|
mgr.prepend_keymap = [
|
||||||
{
|
{
|
||||||
on = "<C-d>";
|
on = [
|
||||||
|
leader
|
||||||
|
"d"
|
||||||
|
];
|
||||||
run = "shell -- dragon-drop -x -i -T %s1";
|
run = "shell -- dragon-drop -x -i -T %s1";
|
||||||
desc = "Open a prompt to drag and drop a file";
|
desc = "Open a prompt to drag and drop a file";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
on = [
|
on = [
|
||||||
|
leader
|
||||||
"c"
|
"c"
|
||||||
"m"
|
|
||||||
];
|
];
|
||||||
run = "plugin chmod";
|
run = "plugin chmod";
|
||||||
desc = "Chmod on selected files";
|
desc = "Chmod on selected files";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
on = [
|
||||||
|
leader
|
||||||
|
"a"
|
||||||
|
"a"
|
||||||
|
];
|
||||||
|
run = "plugin compress";
|
||||||
|
desc = "Archive selected files";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = [
|
||||||
|
leader
|
||||||
|
"a"
|
||||||
|
"p"
|
||||||
|
];
|
||||||
|
run = "plugin compress -p";
|
||||||
|
desc = "Archive selected files (password)";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = [
|
||||||
|
leader
|
||||||
|
"a"
|
||||||
|
"h"
|
||||||
|
];
|
||||||
|
run = "plugin compress -ph";
|
||||||
|
desc = "Archive selected files (password+header)";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = [
|
||||||
|
leader
|
||||||
|
"a"
|
||||||
|
"h"
|
||||||
|
];
|
||||||
|
run = "plugin compress -ph";
|
||||||
|
desc = "Archive selected files (password+header)";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = [
|
||||||
|
leader
|
||||||
|
"a"
|
||||||
|
"l"
|
||||||
|
];
|
||||||
|
run = "plugin compress -l";
|
||||||
|
desc = "Archive selected files (compression level)";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = [
|
||||||
|
leader
|
||||||
|
"a"
|
||||||
|
"u"
|
||||||
|
];
|
||||||
|
run = "plugin compress -phl";
|
||||||
|
desc = "Archive selected files (password+header+level)";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = [
|
||||||
|
leader
|
||||||
|
"y"
|
||||||
|
];
|
||||||
|
run = "plugin wl-clipboard";
|
||||||
|
desc = "Copy file to clipboard";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = [
|
||||||
|
leader
|
||||||
|
"r"
|
||||||
|
];
|
||||||
|
run = "plugin recycle-bin";
|
||||||
|
desc = "Open Recycle Bin Menu";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = [
|
||||||
|
leader
|
||||||
|
"m"
|
||||||
|
];
|
||||||
|
run = "plugin mount";
|
||||||
|
desc = "Open Mount Manager";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
on = [
|
||||||
|
leader
|
||||||
|
"l"
|
||||||
|
];
|
||||||
|
run = "plugin lazygit";
|
||||||
|
desc = "Open lazygit";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
Reference in New Issue
Block a user