nvim-telescope / telescope-media-files.nvim

Telescope extension to preview media files using Ueberzug.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

With find_files

niksingh710 opened this issue · comments

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

I was wondering the same thing.

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.

This is a must

commented

I think this should be a reasonable setup

Any updates on this?

I'm wondering this too.

commented

update?

No one is working on this