feat: add custom media_extensions support (#306)

* Add custom media_extensions support

Customize insert image and preview image files list. This is useful to
add optional filetypes into filtered list (for example
telescope-media-files optionally supporting svg preview)

* Make media_extension option matching to default one
This commit is contained in:
Inom Turdikulov
2024-02-26 16:02:22 +06:00
committed by GitHub
parent 872b83f619
commit 1f725fca21
2 changed files with 29 additions and 27 deletions

View File

@@ -136,6 +136,20 @@ telekasten.setup({opts})
-- "viu-previewer" if you have viu installed
media_previewer = "telescope-media-files",
-- Customize insert image and preview image files list. This is useful
-- to add optional filetypes into filtered list (for example
-- telescope-media-files optionally supporting svg preview)
media_extensions = {
".png",
".jpg",
".bmp",
".gif",
".pdf",
".mp4",
".webm",
".webp",
},
-- Calendar integration
plug_into_calendar = true, -- use calendar integration
calendar_opts = {