yazi: add some stuff

This commit is contained in:
2025-12-14 18:28:47 +03:00
committed by Sweetbread
parent 9c3698839c
commit 514d3a45d9
3 changed files with 23 additions and 2 deletions
+2
View File
@@ -7,12 +7,14 @@
"https://nix-community.cachix.org" "https://nix-community.cachix.org"
"https://hyprland.cachix.org" "https://hyprland.cachix.org"
"https://ezkea.cachix.org" "https://ezkea.cachix.org"
"https://yazi.cachix.org"
]; ];
extra-trusted-public-keys = [ extra-trusted-public-keys = [
"main:kpwMe+9BsGJ/IUb7i3iadaV38y5/Yuqoct0mf7wI9ds=" "main:kpwMe+9BsGJ/IUb7i3iadaV38y5/Yuqoct0mf7wI9ds="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI=" "ezkea.cachix.org-1:ioBmUbJTZIKsHmWWXPe1FSFbeVe+afhfgqgTSNd34eI="
"yazi.cachix.org-1:Dcdz63NZKfvUCbDGngQDAZq6kOroIrFoyO064uvLh8k="
]; ];
}; };
+1 -1
View File
@@ -87,7 +87,7 @@ in {
"float, class:^(feh)$" "float, class:^(feh)$"
"float, class:^(mpv)$" "float, class:^(mpv)$"
"float, title:^(Список друзей)" "float, title:^(Список друзей)"
"move onscreen cursor -50% -50%, class:^(xdragon)$" "move onscreen cursor -50% -50%, class:^(dragon-drop)$"
"float, title:(nmtui)" "float, title:(nmtui)"
"float, title:(pulsemixer)" "float, title:(pulsemixer)"
"float, title:(clipse)" "float, title:(clipse)"
+20 -1
View File
@@ -54,6 +54,20 @@
require("git"):setup() require("git"):setup()
require("full-border"):setup() require("full-border"):setup()
require("starship"):setup() require("starship"):setup()
Status:children_add(function()
local h = cx.active.current.hovered
if not h or ya.target_family() ~= "unix" then
return ""
end
return ui.Line {
ui.Span(ya.user_name(h.cha.uid) or tostring(h.cha.uid)):fg("magenta"),
":",
ui.Span(ya.group_name(h.cha.gid) or tostring(h.cha.gid)):fg("magenta"),
" ",
}
end, 500, Status.RIGHT)
''; '';
keymap = { keymap = {
@@ -63,6 +77,11 @@
run = "plugin toggle-pane max-preview"; run = "plugin toggle-pane max-preview";
desc = "Maximize or restore the preview pane"; desc = "Maximize or restore the preview pane";
} }
{
on = "Y";
run = ''shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list'';
desc = "Copy files into system clipboard";
}
{ {
on = ["c" "m"]; on = ["c" "m"];
run = "plugin chmod"; run = "plugin chmod";
@@ -75,7 +94,7 @@
} }
{ {
on = [ "<C-n>" ]; on = [ "<C-n>" ];
run = "shell '${lib.getExe pkgs.dragon-drop} -x -i -T %h'"; run = "shell '${lib.getExe pkgs.dragon-drop} -x -A -i -T %s'";
} }
{ {
on = [ "g" "<S-d>" ]; on = [ "g" "<S-d>" ];