Replies: 1 comment 3 replies
-
For example, if I want to set a new yazi/yazi-config/preset/yazi.toml Line 71 in 6a4f6aa With the current implementation, I just need: [open]
prepend_rules = [
{ mime = "application/x-{xz,rar}", use = "my-own-opener" },
] Questions for Your Proposal:
Would your approach provide better clarity or usability than the current prepend/append system? |
Beta Was this translation helpful? Give feedback.
-
discussion on config file structure
Hey mate, I like
yazi
, don't try to get rid of me, I will be by your side.I will try to be polite & helpful.
Let's skip the formalities and get to the main topic.
Here is my personal opinion.
prepend_
andappend_
things is a little bit overdone.Explanation of my thoughts.
We have the default configuration file from this
yazi
,& then the customized config file will be loaded with an override,
which is relatively simple.
The configuration file is loaded at most twice.
& then I feel that
yazi
has considered too much.This
prepend_
andappend_
may make the things become complicated.The
xxxx.yazi/init.lua
format already well regulated the path structure of the plugin.Free users to organize the structure of the config file.
The customized configure file just need one entry.
On the
yazi
side, there may be two entries,one for configuring the whole application,
and the other for configuring the plugin.
Unlike nvim, the configurations are all done with scripts.
Whether it's the old vim script or the new lua script.
which makes us only need one entry that compatible with
the old vim script configuration file in this entry.
No matter there is one or two entry, as user,
we just want to keep the config entry clean.
Also, for the configuration files of plugins & keymap & theme.
When they become too bulky in one file,
we will want to separate them into separate files.
The plugin config file will be under the
init.lua
file,The basic config file & keymap config file & theme config file
will under the
yazi.toml
or maybe calledinit.toml
, whatever.Also, these files can include other branchs.
The most important thing is, actually,
all
yazi
needs to do is just give us an entry,and then we organize the structure of the config file by ourselves.
Be happy to be everything under control.
someting like
nvim
init.lua
, like this,someting like
vim
vimrc
, like this,The
prepend_
andappend_
things is a little bit overdone.I really think this is very unnecessary
and needs a revolution to cut it off.
But this might require greater changes and modifications,
and it will be very painful.
What does the
yazi
think?Beta Was this translation helpful? Give feedback.
All reactions