nvim-telescope / telescope-media-files.nvim

Telescope extension to preview media files using Ueberzug.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telescope-media-files not works

Johan-Palacios opened this issue · comments

I have this issue

image

SO:Ubuntu in WLS

I have this issue

image

SO:Ubuntu in WLS

Hi, I am new to this, but I discovered the problem.
in the file browser settings you set the find_cmd property with fd, but in ubuntu os, the command fd does not exist exactly, then you replace it with rg or fdfind
The additional problem is that you cannot change this option of your init.vim or your .vimrc, you must edit the media_files.lua file that is stored in the plugin and change the default configuration on the end of the file:

carbon (1)

to:
carbon

return require('telescope').register_extension {
  setup = function(ext_config)
    filetypes = ext_config.filetypes or {"png", "jpg", "mp4", "webm", "pdf"}
    --find_cmd = ext_config.find_cmd or "fd"
    find_cmd = ext_config.find_cmd or "rg"
  end,
  exports = {
    media_files = M.media_files
  },
}

Will this be available for MacOS anytime in the future?

I have the same problem. But I am not using WSL. I am using Pop OS.

Will this be available for MacOS anytime in the future?

probably , you need to make it work with icat

Hi, I am new to this, but I discovered the problem. in the file browser settings you set the find_cmd property with fd, but in ubuntu os, the command fd does not exist exactly, then you replace it with rg or fdfind The additional problem is that you cannot change this option of your init.vim or your .vimrc, you must edit the media_files.lua file that is stored in the plugin and change the default configuration on the end of the file:
...

I have the same issue, but im on Manjaro (still on wsl). the fd command works, but i still have no preview at all

Hi, I am new to this, but I discovered the problem. in the file browser settings you set the find_cmd property with fd, but in ubuntu os, the command fd does not exist exactly, then you replace it with rg or fdfind The additional problem is that you cannot change this option of your init.vim or your .vimrc, you must edit the media_files.lua file that is stored in the plugin and change the default configuration on the end of the file:
...

I have the same issue, but im on Manjaro (still on wsl). the fd command works, but i still have no preview at all

first make sure ueberzug works and you have xorg running.

I dont think i can run xorg on wsl... can i?

I dont think i can run xorg on wsl... can i?

idk , I never used wsl 😆

well then, if the extension needs xorg to run, it mean it depending of a display server, so, it cannot work on wsl (neither on wayland) until there is another implementation :/

im not a pro in the domain, so maybe i'm mistaking, but i think this is it, we cant have this :(

I would suggest doing a dual boot

So, I'm guessing this means the whole config is not being loaded at all...

I dont think i can run xorg on wsl... can i?

In WSL 2 you can run GUI applications

I have this issue
image
SO:Ubuntu in WLS

Hi, I am new to this, but I discovered the problem. in the file browser settings you set the find_cmd property with fd, but in ubuntu os, the command fd does not exist exactly, then you replace it with rg or fdfind The additional problem is that you cannot change this option of your init.vim or your .vimrc, you must edit the media_files.lua file that is stored in the plugin and change the default configuration on the end of the file:

carbon (1)

to: carbon

return require('telescope').register_extension {
  setup = function(ext_config)
    filetypes = ext_config.filetypes or {"png", "jpg", "mp4", "webm", "pdf"}
    --find_cmd = ext_config.find_cmd or "fd"
    find_cmd = ext_config.find_cmd or "rg"
  end,
  exports = {
    media_files = M.media_files
  },
}

Hello, I have doubt in this code, what is M in M.media_files?

I have this issue
image
SO:Ubuntu in WLS

Hi, I am new to this, but I discovered the problem. in the file browser settings you set the find_cmd property with fd, but in ubuntu os, the command fd does not exist exactly, then you replace it with rg or fdfind The additional problem is that you cannot change this option of your init.vim or your .vimrc, you must edit the media_files.lua file that is stored in the plugin and change the default configuration on the end of the file:
carbon (1)
to: carbon

return require('telescope').register_extension {
  setup = function(ext_config)
    filetypes = ext_config.filetypes or {"png", "jpg", "mp4", "webm", "pdf"}
    --find_cmd = ext_config.find_cmd or "fd"
    find_cmd = ext_config.find_cmd or "rg"
  end,
  exports = {
    media_files = M.media_files
  },
}

Hello, I have doubt in this code, what is M in M.media_files?

I have this issue
image
SO:Ubuntu in WLS

Hi, I am new to this, but I discovered the problem. in the file browser settings you set the find_cmd property with fd, but in ubuntu os, the command fd does not exist exactly, then you replace it with rg or fdfind The additional problem is that you cannot change this option of your init.vim or your .vimrc, you must edit the media_files.lua file that is stored in the plugin and change the default configuration on the end of the file:
carbon (1)
to: carbon

return require('telescope').register_extension {
  setup = function(ext_config)
    filetypes = ext_config.filetypes or {"png", "jpg", "mp4", "webm", "pdf"}
    --find_cmd = ext_config.find_cmd or "fd"
    find_cmd = ext_config.find_cmd or "rg"
  end,
  exports = {
    media_files = M.media_files
  },
}

Hello, I have doubt in this code, what is M in M.media_files?

M is the objet to return inside the plugin file

Thank you @yebt , in mi case I have this:

image
image
image

What should be M for me? Because when I use it, I have an error like this:
image

Thank you @yebt , in mi case I have this:

image
image
image

What should be M for me? Because when I use it, I have an error like this:
image

Hi @HeyChobe
my modifications were made at that time, within the same plugin, this file to be specific

This contain to M like a returned object

Thank you @yebt , in mi case I have this:

image
image
image

What should be M for me? Because when I use it, I have an error like this:
image

Hi @HeyChobe
my modifications were made at that time, within the same plugin, this file to be specific

This contain to M like a returned object

Ohh perfect, now I understand, thank you for your help :D