continuing refactor

This commit is contained in:
Matt Nish-Lapidus 2025-02-05 01:26:40 -05:00
parent dcdccf584d
commit 385725af95
6 changed files with 43 additions and 160 deletions

17
modules/home/yazi.nix Normal file
View file

@ -0,0 +1,17 @@
{ inputs, ... }:
{
programs.yazi = {
enable = true;
enableFishIntegration = true;
package = inputs.yazi.packages.x86_64-linux.default;
initLua = ../../homes/emenel/dotfiles/dot_config/yazi/init.lua;
keymap = {
input.prepend_keymap = [
{ on = "<C-d>"; run = "shell 'ripdrag \"$@\" -x 2>/dev/null &' --confirm"; }
{ on = "y"; run = ["shell 'for path in \"$@\"; do echo \"file://$path\"; done | wl-copy -t text/uri-list'\n" "yank"]; }
{ on = ["g" "r"]; run = "shell 'ya emit cd \"$(git rev-parse --show-toplevel)\"'\n"; }
];
};
};
}