Skip to content

Is there a way to export live grep results into a buffer or file? #1964

Answered by nenahp
sollymay asked this question in Q&A
Discussion options

You must be logged in to vote

You can export quickfix by :w! filename

Or if you like you can export to json. Then use jq or vim.json.decode to do something more.

require('fzf-lua').live_grep({
  fzf_opts = { ['--listen'] = true },
  keymap = { fzf = { ['alt-e'] = [[execute-silent:curl localhost:$FZF_PORT > a.json]] } },
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sollymay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants