-
Long time yadm user here. I've had yadm work for a while using this: require("snacks.picker").files({
cmd = "yadm",
args = { "ls-files" },
cwd = "~"
)} But this now seems broken since 2.16.0. What would be the "correct" way of implementing this now? My ideal yadm picker would just be the same as the git one, but would call the Cheers. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The files picker is meant to be used with finder cmds only. You can do soemthing like the below instead: Snacks.picker({
finder = "proc",
cmd = "ls",
transform = function(item)
item.file = item.text
end,
}) |
Beta Was this translation helpful? Give feedback.
-
Thanks! For anyone stumbling upon this trying to set up the same here's what I've ended up with: require("snacks").picker({
finder = "proc",
cmd = "yadm",
args = { "ls-files" },
cwd = "~",
title = "YADM Files",
transform = function(item)
item.file = '~/' .. item.text
end,
}) |
Beta Was this translation helpful? Give feedback.
The files picker is meant to be used with finder cmds only.
You can do soemthing like the below instead: