Open Johan-Palacios opened 3 years ago
I have this issue
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:
to:
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 withfd
, but in ubuntu os, the commandfd
does not exist exactly, then you replace it withrg
orfdfind
The additional problem is that you cannot change this option of yourinit.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
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 commandfd
does not exist exactly, then you replace it withrg
orfdfind
The additional problem is that you cannot change this option of yourinit.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.
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 :laughing:
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
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 commandfd
does not exist exactly, then you replace it withrg
orfdfind
The additional problem is that you cannot change this option of yourinit.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:
to:
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
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 commandfd
does not exist exactly, then you replace it withrg
orfdfind
The additional problem is that you cannot change this option of yourinit.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:to:
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
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 commandfd
does not exist exactly, then you replace it withrg
orfdfind
The additional problem is that you cannot change this option of yourinit.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:to:
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:
What should be M for me? Because when I use it, I have an error like this:
Thank you @yebt , in mi case I have this:
![]()
![]()
What should be M for me? Because when I use it, I have an error like this:
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:
![]()
![]()
What should be M for me? Because when I use it, I have an error like this:
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
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.
I have this issue
SO:Ubuntu in WLS