• Stars
    star
    464
  • Rank 94,450 (Top 2 %)
  • Language
    Lua
  • License
    MIT License
  • Created almost 4 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Telescope extension to preview media files using Ueberzug.

Telescope-media-files.nvim

Preview images, pdf, epub, video, and fonts from Neovim using Telescope.

Demo

Install

Plug 'nvim-lua/popup.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'nvim-telescope/telescope-media-files.nvim'

Setup

require('telescope').load_extension('media_files')

Configuration

This extension can be configured using extensions field inside Telescope setup function.

require'telescope'.setup {
  extensions = {
    media_files = {
      -- filetypes whitelist
      -- defaults to {"png", "jpg", "mp4", "webm", "pdf"}
      filetypes = {"png", "webp", "jpg", "jpeg"},
      -- find command (defaults to `fd`)
      find_cmd = "rg"
    }
  },
}

Available commands

:Telescope media_files

"Using lua function
lua require('telescope').extensions.media_files.media_files()

When you press <CR> on a selected file, it will copy its relative path to the clipboard

Prerequisites

credit to https://github.com/cirala/vifmimg

More Repositories

1

telescope.nvim

Find, Filter, Preview, Pick. All lua, all the time.
Lua
11,260
star
2

telescope-file-browser.nvim

File Browser extension for telescope.nvim
Lua
1,675
star
3

telescope-fzf-native.nvim

FZF sorter for telescope written in c
C
1,400
star
4

telescope-frecency.nvim

A telescope.nvim extension that offers intelligent prioritization when selecting files from your editing history.
Lua
783
star
5

telescope-live-grep-args.nvim

Live grep with args
Lua
597
star
6

telescope-project.nvim

Lua
586
star
7

telescope-ui-select.nvim

Lua
404
star
8

telescope-dap.nvim

Integration for nvim-dap with telescope.nvim
Lua
310
star
9

telescope-github.nvim

Integration with github cli
Lua
217
star
10

telescope-symbols.nvim

Lua
193
star
11

telescope-packer.nvim

A Telescope extension that provides extra functionality for Packer.nvim
Lua
180
star
12

telescope-fzy-native.nvim

FZY style sorter that is compiled
Lua
162
star
13

telescope-bibtex.nvim

A telescope.nvim extension to search and paste bibtex entries into your TeX files.
Lua
111
star
14

telescope-smart-history.nvim

A history implementation that memorizes prompt input for a specific context
Lua
108
star
15

telescope-cheat.nvim

WIP integration
Lua
101
star
16

telescope-arecibo.nvim

A Neovim Telescope extension for searching the web!
Lua
90
star
17

telescope-hop.nvim

(Teles-)Hopping to the moon.
Lua
90
star
18

telescope-fzf-writer.nvim

Incorporating some fzf concepts with plenary jobs and telescope
Lua
71
star
19

telescope-rs.nvim

Experimental features for telescope in RUST? The safest telescope known to HUMANITY
45
star
20

telescope-vimspector.nvim

Integration for vimspector with telescope.nvim
Lua
38
star
21

telescope-z.nvim

Z integration for Telescope
Lua
35
star
22

telescope-node-modules.nvim

An extension that provides its users with node packages under node_modules directory
Lua
31
star
23

telescope-ghq.nvim

Lua
24
star
24

telescope-snippets.nvim

snippets.nvim integration
Lua
13
star