1

Home: Add yazi mappings for ripdrag + shell + yank to system clipboard

This commit is contained in:
2025-06-26 12:25:43 +02:00
parent 51a9d13b05
commit bf5504d746

View File

@ -630,6 +630,21 @@ rec {
run = "plugin chmod";
desc = "Chmod on selected files";
}
{
on = "!";
run = ''shell "$SHELL" --block'';
desc = "Open $SHELL here";
}
{
on = "<C-n>";
run = ''shell -- ripdrag -a -n "$@"''; # $@: all selected files, $0: the hovered file, $n: the nth selected file
desc = "Expose files in ripdrag";
}
{
on = "y";
run = [''shell -- for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list'' "yank"];
desc = "Copy files to system clipboard on yank";
}
];
};
};