From 302b1971ad807ff26fd7844a2a939f96fb4dfe28 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Thu, 26 Jun 2025 12:25:43 +0200 Subject: [PATCH] Home: Add yazi mappings for ripdrag + shell + yank to system clipboard --- home/christoph/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/home/christoph/default.nix b/home/christoph/default.nix index a3ce7527..df233dba 100644 --- a/home/christoph/default.nix +++ b/home/christoph/default.nix @@ -630,6 +630,21 @@ rec { run = "plugin chmod"; desc = "Chmod on selected files"; } + { + on = "!"; + run = ''shell "$SHELL" --block''; + desc = "Open $SHELL here"; + } + { + on = ""; + 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"; + } ]; }; };