Replies: 2 comments
-
Agreed, this would be much cleaner. As far as I'm concerned, I'm using
With this approach:
|
Beta Was this translation helpful? Give feedback.
-
Duplicate of #1408 I want to keep it simple – it's just about automating the step of manually downloading plugins from GitHub. Since it supports monorepos, supporting that would require introducing a third directory, which makes the design and implementation more complex. It also breaks the convention of the plugin directory location, because plugins would come from two directories, which introduces the need for a separate priority concept – which plugin should be used when two directories have a plugin with the same name? This increases confusion while reducing transparency for users – it's easy for me to know where Yazi's config directory is, but it's hard to say where the data directory storing plugins is, which makes it harder for users to find their plugins. Also, since plugins could come from two directories, every time we load plugins, an extra check is needed, which affects performance. Plus, it would break other features in Yazi, like the I've provided a more detailed explanation in the linked issue, please read it. Closing as duplicate and not planned. |
Beta Was this translation helpful? Give feedback.
-
I wonder is there a reason to store flavors and plugins in config directory? In my opinion, it is better to store it in data directory.
I think many people including me put those directories in gitignore because dont want to store plugin/flavor source code in their dotfiles repo.
Also, nvim for example stores plugins in data folder, so why we choose this approach?
Beta Was this translation helpful? Give feedback.
All reactions