Closed iturdikulov closed 7 months ago
Is there a reason to expose this as an option? This seems a bit unnecessary and cumbersome. Why not just expanding the hard-coded list to add the most common image extensions?
Yes, main here few reasons (at least for me):
Telekasten browser_media
is used to generate media files list and for example my preview plugin is not supporting svg files and I just don't want to see them here (lets assume I have a lot of svg files). Or for example I want to preview some rare file-type like .tiff, but it's not in a supported files list. Here a lot of combinations.
I think chafa (which used by telescope-media-files plugin) support a lot file-types (probably anything which imagemagic support, magick identify -list format
gives 302 file formats) and managing this file-types from configuration can be useful.
Thanks for explaining your implementation. I am fine with having it as an option then. Just address the review so the doc matches the default config and I will merge.
Thank you ! Feel free to tackle any other opened issue :smile: We definitely need more contributors.
Customize insert image and preview image files list.
Proposed change
Type of change
Additional information
This is useful to add optional filetypes into filtered list (for example telescope-media-files optionally supporting svg preview). With this solution user can control which media files he want to see in telescope windows.
Checklist
.stylua.toml
file is provided).luacheckrc
file is provided)README.md
has been updated according to this change. No configuration section?doc/telekasten.txt
helpfile has been updated according to this change.