nvim-dbee icon indicating copy to clipboard operation
nvim-dbee copied to clipboard

Yank query from history

Open luccascorrea opened this issue 10 months ago • 3 comments

Hi!

Thanks for the awesome plugin! I was looking through the docs and I couldn't figure this out. Is there a way to yank a previously executed query shown in the query history pane?

luccascorrea avatar Feb 22 '25 11:02 luccascorrea

Yes, this should be possible AFAIK.

  1. Navigate to the archived query you want to yank in the log buffer, press enter when you find it
  2. The result should now be displayed in the result buffer
  3. Now yank the content (cursors still in the result pane), e.g. lua require("dbee").store("json", "file", {extra_arg = "output.json"} )

Albeit, it should be a shortcut for yanking this directly from the log buffer but that is probably an enhancement in the future. Let me know if this works for you.

MattiasMTS avatar Mar 09 '25 17:03 MattiasMTS

@luccascorrea any update on this? Otherwise I'll close this due to staleness

MattiasMTS avatar Mar 29 '25 17:03 MattiasMTS

@luccascorrea, are you referring to tanking the query or the result?

phdah avatar Apr 04 '25 11:04 phdah