some advice on installation #8
-
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
Sure I'll try and help. It looks slightly odd as when it fails to load a file it should actively fall back to the default code readers attempt, which for parquet would just say binary file, and for csv or json would show you like a colour highlighted version of their raw text. So it looks like the plugin is hanging at some point I think this is probably my fault as I don't think I made it clear in the installation instructions that you need the init.lua as well (I didn't really realise till now actually, even if it is empty. The setup function has defaults, but without the line in the init.lua it isn't called when yazi starts so the defaults don't get initialised. create an init.lua in the same file as the yazi.toml and add
and it should work. or you can add
if you want it to startup in standard view rather than the summarized version. Or you can put all the options in there set to the defauilts and then they are easy to change when you want to. Don't forget the keymap.toml as well so that you can side scroll, again it goes in the same folder.
That's good information to know though, thanks for letting me know it wasn't working. You could also have raised it in the issues section as the plugin wasn't working correctly. I'll move the init.lua instructions into the installation section and make sure it's clear you at least need to have the setup call in there. Let me know if it still isn't working or if you have any other questions about the config or anything. |
Beta Was this translation helpful? Give feedback.
-
I've made some changes to the installation section so that it now includes the minimum for the init.lua. Let me know if you think it needs anything else. |
Beta Was this translation helpful? Give feedback.
-
A useful tip with yazi by the way (although this may be standard functioning in the later versions, let me know) is this shell wrapper mentioned here. Once you add it if you launch with y instead of yazi when you next quit it will drop you at the location you were last browsing, rather than where you started. It makes navigating the terminal super easy. Especially with the zoxide integration. |
Beta Was this translation helpful? Give feedback.
-
Hey @wylie102 , thanks a lot for taking the time to get back to me, and duly noted for the issues, I'll file it there next time! I've also implemented the y shortcut (very useful indeed!), and well as the (still not usable) navigation keybindings. I created the screenshot of the .config/yazi directory: screenshot of the process freezing: Here is a dump of the debug logs from Yazi: it no longer looks like it fails on a 'nil' value, but it seems that it doesn't like something else now.
Does that give any other clues? :/ |
Beta Was this translation helpful? Give feedback.
-
Try latest main. It should be fixed. You were on a newer version of yazi than me, thats why I couldn't see the problem. I just upgraded and it broke the same way, so I checked their release notes and they'd changed 'name' from a method of Url - Url:name() to a property Url.name. Like if in python you were trying to do path.name() instead of path.name. Everyone else would have/will start having that issue once they upgrade to the latest yazi as well. Interestingly I switch between the standard and the Nightly and this issue wasn't present on the nightly either. btw, ya pack will be annoyed because you modified a file. So then annoyingly won'y let you upgrade or remove a plugin. I found the best approach is to remove the duckdb.yazi folder, remove the duckdb.yazi entry from the package.toml then just run Let me know if it works, hopefully it will this time |
Beta Was this translation helpful? Give feedback.
Try latest main. It should be fixed.
You were on a newer version of yazi than me, thats why I couldn't see the problem.
I just upgraded and it broke the same way, so I checked their release notes and they'd changed 'name' from a method of Url - Url:name() to a property Url.name. Like if in python you were trying to do path.name() instead of path.name.
Everyone else would have/will start having that issue once they upgrade to the latest yazi as well.
Interestingly I switch between the standard and the Nightly and this issue wasn't present on the nightly either.
btw, ya pack will be annoyed because you modified a file. So then annoyingly won'y let you upgrade or remove a plugin. I found the…