nvim-telescope / telescope-media-files.nvim

Telescope extension to preview media files using Ueberzug.
MIT License
445 stars 46 forks source link

Telescope-media-files not works #11

Open Johan-Palacios opened 3 years ago

Johan-Palacios commented 3 years ago

I have this issue

image

SO:Ubuntu in WLS

yebt commented 2 years ago

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 withfd, but in ubuntu os, the command fd does not exist exactly, then you replace it withrg or fdfind The additional problem is that you cannot change this option of your init.vim or your.vimrc, you must edit themedia_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
  },
}
JustSage commented 2 years ago

Will this be available for MacOS anytime in the future?

iam-arnab commented 2 years ago

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

siduck commented 2 years ago

Will this be available for MacOS anytime in the future?

probably , you need to make it work with icat

gdnathan commented 2 years ago

Hi, I am new to this, but I discovered the problem. in the file browser settings you set the find_cmd property withfd, but in ubuntu os, the command fd does not exist exactly, then you replace it withrg or fdfind The additional problem is that you cannot change this option of your init.vim or your.vimrc, you must edit themedia_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

siduck commented 2 years ago

Hi, I am new to this, but I discovered the problem. in the file browser settings you set the find_cmd property withfd, but in ubuntu os, the command fd does not exist exactly, then you replace it withrg or fdfind The additional problem is that you cannot change this option of your init.vim or your.vimrc, you must edit themedia_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.

gdnathan commented 2 years ago

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

siduck commented 2 years ago

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

idk , I never used wsl :laughing:

gdnathan commented 2 years ago

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 :(

siduck commented 2 years ago

I would suggest doing a dual boot

maxim-h commented 1 year ago

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

Johan-Palacios commented 1 year ago

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

In WSL 2 you can run GUI applications

HeyChobe commented 1 year ago

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 withfd, but in ubuntu os, the command fd does not exist exactly, then you replace it withrg or fdfind The additional problem is that you cannot change this option of your init.vim or your.vimrc, you must edit themedia_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?

yebt commented 1 year ago

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 withfd, but in ubuntu os, the command fd does not exist exactly, then you replace it withrg or fdfind The additional problem is that you cannot change this option of your init.vim or your.vimrc, you must edit themedia_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 withfd, but in ubuntu os, the command fd does not exist exactly, then you replace it withrg or fdfind The additional problem is that you cannot change this option of your init.vim or your.vimrc, you must edit themedia_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

HeyChobe commented 1 year ago

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

yebt commented 1 year ago

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

HeyChobe commented 1 year ago

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

bwkam commented 6 months ago
E5108: Error executing lua: ...dia-files.nvim/lua/telescope/_extensions/media_files.lua:97: attempt to index local 'entry' (a nil value)                                                                         
stack traceback:                                                                                                                                                                                                 
        ...dia-files.nvim/lua/telescope/_extensions/media_files.lua:97: in function 'run_replace_or_original'                                                                                                    
        ...ckages/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func'                                                                                                                   
        ...Packages/start/telescope.nvim/lua/telescope/mappings.lua:257: in function <...Packages/start/telescope.nvim/lua/telescope/mappings.lua:256>     

the plugin isn't working for me, fd runs fine, I'm not sure what's the problem here.