feat(picker.undo): added ctrl+y to yank added lines from undo

This commit is contained in:
Folke Lemaitre 2025-02-07 10:21:18 +01:00
parent bc087d36d6
commit 811a24cc16
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
3 changed files with 18 additions and 3 deletions

View file

@ -758,7 +758,14 @@ M.undo = {
format = "undo",
preview = "preview",
confirm = "item_action",
win = { preview = { wo = { number = false, relativenumber = false, signcolumn = "no" } } },
win = {
preview = { wo = { number = false, relativenumber = false, signcolumn = "no" } },
input = {
keys = {
["<c-y>"] = { "yank", mode = { "n", "i" } },
},
},
},
icons = { tree = { last = "┌╴" } }, -- the tree is upside down
diff = {
ctxlen = 4,