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"