Delete found lines
#2492
-
Beta Was this translation helpful? Give feedback.
Answered by
nenahp
Dec 29, 2025
Replies: 3 comments 7 replies
-
|
normally this case shouldn't happen? I cannot reproduce it. |
Beta Was this translation helpful? Give feedback.
5 replies
-
maybe grug-far.nvim can do the easily. Just regex match all the line then "Replace matches with empty string" |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
OK, this works. Briteforce-ish, but works. ["ctrl-q"] = { function(selected, opts)
local fzf_buf = vim.api.nvim_get_current_buf()
actions.file_sel_to_qf(selected, opts)
if vim.api.nvim_buf_is_valid(fzf_buf) and vim.bo[fzf_buf].buftype == "terminal" then
vim.cmd("bdelete! " .. fzf_buf)
end
vim.cmd("wincmd p")
end }, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

you don't need the bracket (although I don't know if this indended or bug):