Skip to content

Triton171/telescope-better-find-files.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

telescope-better-find-files.nvim

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.

Installation

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

Configuration

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages