-
-
Notifications
You must be signed in to change notification settings - Fork 93
Add "quiet" config option to suppress action confirmation print statements #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah, we should probably do this as part of #72 |
Ok, I've looked a bit more into this and it's surprisingly tricky; it's essentially a mechanism such that
See So as an intermediate solution, one thing to do would be something akin to local silent_action = function(action)
return function(prompt_bufnr)
local cmd = string.format([[lua require "telescope".extensions.file_browser.%s(%d)]], action, prompt_bufnr)
vim.cmd(cmd)
end
end
require("telescope").setup {
extensions = {
file_browser = {
mappings = {
["i"] = {
["<A-y>"] = silent_action "copy",
},
},
},
},
} I'll try to see how |
As an update: see #87 (comment) |
Thank you! |
You're welcome :) I know a |
Is your feature request related to a problem? Please describe.
Whenever I execute a file action (eg: delete a file), I find the additional confirmation at the end of the action, which then requires an additional enter to dismiss, breaks my workflow
eg:
ie: the following print statements in
actions.lua
Describe the solution you'd like
I would like a "quiet" config option which prevents the action confirmation print statement being output
The text was updated successfully, but these errors were encountered: