Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更方便的指定插件配置,比如在 .fuorc 里面直接编写 config.local.xx = yy #639

Open
cosven opened this issue Dec 21, 2022 · 0 comments
Labels
feat request feature or enhancement request

Comments

@cosven
Copy link
Member

cosven commented Dec 21, 2022

当前指定插件配置的正确方式如下图
image

但它存在两个问题可以优化。

一个问题是:目前指定插件配置的方式不够直观。直观的方式其实是直接在 .fuorc 文件里面编写 config.local.xx = yy,而目前需要监听 about_to_enable 的事件,在它的回调中处理配置。

直观的方式应该类似这样子

config.VIDEO_SELECT_POLICY = '>>>'
config.local.MUSIT_FOLDERS = [...]

另外一个问题是,插件的配置全名理应更简单。
比如要指定 “feeluown-download” 插件的配置,目前的写法是

config.fuo_dl.xx = yy

理想中,写法应该是类似

config.dl.xx = yy
# 或
config.download.xx = yy
@cosven cosven added the feat request feature or enhancement request label Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat request feature or enhancement request
Projects
None yet
Development

No branches or pull requests

1 participant