Does git_files
accept actions?
#1254
-
I'm trying the following setup {
"ibhagwan/fzf-lua",
opts = function(_, opts)
local actions = require("fzf-lua.actions")
opts.files = {
actions = {
["alt-i"] = { actions.toggle_ignore },
["alt-h"] = { actions.toggle_hidden },
},
}
opts.git = {
files = {
actions = {
["alt-i"] = { actions.toggle_ignore },
["alt-h"] = { actions.toggle_hidden },
},
},
}
end,
} While |
Beta Was this translation helpful? Give feedback.
Answered by
ibhagwan
Jun 12, 2024
Replies: 1 comment 1 reply
-
Ok, I'm guessing that's not possible with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The actions you linked toggle
--hidden
and--no-ignore
respectively on the shell command, these aren’t valid slags forgit ls-files
as you found out. You can change the flag the action toggles but I’m not sure if there’s an option to show hidden files.