✨ feat(yazi): yank now copies the file to the clipboard
This commit is contained in:
parent
c799671713
commit
ba8dee2fb7
1 changed files with 8 additions and 2 deletions
|
@ -43,6 +43,12 @@ prepend_keymap = [
|
||||||
{ on = [
|
{ on = [
|
||||||
"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 = [
|
||||||
|
"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 = [
|
append_keymap = [
|
||||||
|
@ -62,8 +68,8 @@ append_keymap = [
|
||||||
], run = "cd ~/videos/", desc = "Go to the videos directory" },
|
], run = "cd ~/videos/", desc = "Go to the videos directory" },
|
||||||
{ on = [
|
{ on = [
|
||||||
"g",
|
"g",
|
||||||
"i",
|
"p",
|
||||||
], run = "cd ~/pictures/", desc = "Go to the images directory" },
|
], run = "cd ~/pictures/", desc = "Go to the pictures directory" },
|
||||||
{ on = [
|
{ on = [
|
||||||
"g",
|
"g",
|
||||||
"s",
|
"s",
|
||||||
|
|
Loading…
Add table
Reference in a new issue