-
I found there is a way to do it junegunn/fzf.vim#251 (comment),
but didn't found how to do that by this plugin. any helps? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Search the issues and read the advanced Wiki and everything will be clear. What you're asking is very easy with the require("fzf-lua").fzf_exec("fd --type d . $HOME", {
actions = {
["enter"] = {
desc = "change-directory",
fn = function(sel)
vim.cmd("cd " .. sel[1])
end
}
}
}) |
Beta Was this translation helpful? Give feedback.
-
Btw, to write this as a user command named |
Beta Was this translation helpful? Give feedback.
Search the issues and read the advanced Wiki and everything will be clear.
https://github.com/ibhagwan/fzf-lua/wiki/Advanced
What you're asking is very easy with the
fzf_exec
API, modify this to your liking (requiresfd
, change tofind
if you wish):