⚙️ config(yazi): update keymap to yank files to the clipboard

This commit is contained in:
Sergio Laín 2024-10-13 01:24:54 +02:00
parent b1b1e2f229
commit 4a983ce09f
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150

View file

@ -44,11 +44,8 @@ prepend_keymap = [
"T", "T",
], run = "plugin --sync hide-preview", desc = "Hide or show the preview" }, ], run = "plugin --sync hide-preview", desc = "Hide or show the preview" },
{ on = [ { on = [
"y", "<C-y>",
], run = [ ], run = '''shell 'for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list' --confirm''', desc = "Copy to clipboard" },
'''shell 'for path in "$@"; do echo "file://$path"; done | wl-copy -t text/uri-list' --confirm''',
"yank",
], desc = "yank files and copy to clipboard" },
{ on = "A", run = "create --dir", desc = "Create a dir" }, { on = "A", run = "create --dir", desc = "Create a dir" },
] ]