From ba8dee2fb74ec39bcb8ca2f06cedb705f346bd58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 28 Aug 2024 11:40:13 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(yazi):=20yank=20now=20copies?= =?UTF-8?q?=20the=20file=20to=20the=20clipboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/yazi/keymap.toml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml index 39ca8428..7430ef88 100644 --- a/.config/yazi/keymap.toml +++ b/.config/yazi/keymap.toml @@ -43,6 +43,12 @@ prepend_keymap = [ { on = [ "T", ], run = "plugin --sync hide-preview", desc = "Hide or show the preview" }, + { on = [ + "y", + ], run = [ + '''shell 'for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list' --confirm''', + "yank", + ], desc = "yank files and copy to clipboard" }, ] append_keymap = [ @@ -62,8 +68,8 @@ append_keymap = [ ], run = "cd ~/videos/", desc = "Go to the videos directory" }, { on = [ "g", - "i", - ], run = "cd ~/pictures/", desc = "Go to the images directory" }, + "p", + ], run = "cd ~/pictures/", desc = "Go to the pictures directory" }, { on = [ "g", "s",