From d7dbf3c0e136b8c60e7f82b93d79ad84f1a1c69c Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Thu, 13 Feb 2025 11:30:07 -0500 Subject: [PATCH] AutoYADM commit: 2025-02-13 11:30:07 --- .config/yazi/keymap.toml | 10 ++++++++-- .zshrc | 3 +++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml index 3d69e7df..510433c2 100644 --- a/.config/yazi/keymap.toml +++ b/.config/yazi/keymap.toml @@ -37,7 +37,10 @@ prepend_keymap = [ ], run = "linemode none", desc = "Linemode: none" }, { on = "!", run = 'shell "$SHELL" --block', desc = "Open shell here" }, # { on = "!", run = 'shell --block --interactive', desc = "Open shell here" }, - { on = "", run = "shell --confirm dragon-drop -x -i -T '$1'", desc = "Drag and drop selection" }, + { on = [ + "", + "d", + ], run = 'shell -- dragon-drop -x -i -T "$1"', desc = "Drag and drop selection" }, { on = [ "g", "r", @@ -60,7 +63,10 @@ prepend_keymap = [ "g", "i", ], run = "plugin lazygit", desc = "run lazygit" }, - { on = "", run = [ + { on = [ + "c", + "C", + ], run = [ "plugin copy-file-contents", ], desc = "Copy contents of file" }, { on = [ diff --git a/.zshrc b/.zshrc index 2c9e5e36..71901b4d 100644 --- a/.zshrc +++ b/.zshrc @@ -104,6 +104,9 @@ function nh() { function ls() { eza --long --color=always --git --header --icons "$@" } +function copymime() { + wl-copy -t 'text/uri-list' <<< "file://$@" +} function y() { local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd yazi "$@" --cwd-file="$tmp"