nvim-telescope / telescope-media-files.nvim

Telescope extension to preview media files using Ueberzug.
MIT License
445 stars 46 forks source link

With find_files #23

Open niksingh710 opened 2 years ago

niksingh710 commented 2 years ago

How to can i have this feature enabled under find files i mean usign :Telescope media_files works but how to get that working when using find_files

cizordj commented 2 years ago

I was wondering the same thing.

dajohans commented 2 years ago

I've wanted this behaviour for a long time also. I'm not entirely sure what telescope does under the hood. But it seems telescope can be configured to use fzf. When manually using fzf in the terminal it seems to me that you have to specify the preview program when you call fzf, that is you have to specify the program which is used for previewing before fzf knows about the filetype it is going to preview. So I think the way to fix it, at least with fzf, is to make a bash script that checks the filetype and then calls the appropriate program for viewing that filetype. Then tell fzf to use that bash script as a previewer. I suspect that this would also work with telescope. I haven't tried this, but I think I'll give it a go in the next few days. But I think this is one way to get this behaviour. I really hope it works, because the current behaviour where you have to use different search functions for different filetypes is really strange and (imo) badly designed.

olivatooo commented 2 years ago

This is a must

yyy33 commented 1 year ago

I think this should be a reasonable setup

7ze commented 1 year ago

Any updates on this?

rock-tran commented 1 year ago

I'm wondering this too.

qxb3 commented 11 months ago

update?

cizordj commented 11 months ago

No one is working on this