feat(yazi): yank now copies the file to the clipboard

This commit is contained in:
Sergio Laín 2024-08-28 11:40:13 +02:00
parent c799671713
commit ba8dee2fb7
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150

View file

@ -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",