A file picker for Telescope. This is basically a copy of the find_files builtin of Telescope, the only difference being that it can open non-text file in external programs.
Using Vim Plug:
Plug 'Triton171/telescope-better-find-files.nvim'
Additionally you need to load this Plugin for Telescope:
lua << EOF
require('telescope').load_extension('better_find_files')
EOF
This extension can be configured using extensions
field inside Telescope setup function:
lua << EOF
require'telescope'.setup {
extensions = {
better_find_files = {
-- A list of file extensions that should be opened with an external program
external_file_types = {"pdf", "png", "jpg", "gif", "mp4"},
-- The command to open a file
external_open_cmd = "xdg-open"
}
},
}
EOF
The configuration shown here is used as a default in case no explicit configuration is given