telescope.nvim icon indicating copy to clipboard operation
telescope.nvim copied to clipboard

[Feature] Buffer 'live' preview

Open nikola-vukicevic opened this issue 3 years ago • 4 comments

Is there an option (already), to show the actual contents of buffers when using "Telescope buffers"?

(Kinda like what fzf-lua is doing. I really can't seem to find a similar option with Telescope).

If there is no such option ATM, I'd like to make it a feature request. :)

Cheers!

nikola-vukicevic avatar Apr 26 '23 14:04 nikola-vukicevic

I'm not super familiar with fzf-lua but trying out FzfLua buffers the preview looks pretty similar. Telescope is missing line numbers. Is that what you're referencing? Are there any other differences?

jamestrew avatar Apr 26 '23 23:04 jamestrew

I was referring to this:

  • Telescope showing the (last) saved version of the file:

Apr27::071624

  • fzf-lua showing the contents from the buffer:

Apr27::071756

nikola-vukicevic avatar Apr 27 '23 05:04 nikola-vukicevic

I've noticed it as well and it will be super cool to have it in telescope (show current modified buffer version instead of last saved - from the disk)

VitaliyR avatar May 20 '23 01:05 VitaliyR

I encountered this problem, it very confusing. I often edit some JSON files, and every time I format them, I have to save the file in order to display the correct content in the preview.

rogeryk avatar Oct 03 '23 13:10 rogeryk