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

[feature] Is it possible to read a config file to store some configuration? #66

Open
Freed-Wu opened this issue Mar 5, 2023 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@Freed-Wu
Copy link
Collaborator

Freed-Wu commented Mar 5, 2023

Such as

mode: "parallel auto"
uniformsize: "fill"
hotkeys:
  left: "h"
  right: "l"
  up: "k"
  down: "j"
  ...

Or just read a python file to configure like ipython and ptpython?

from mulimgviewer.hotkeys import XXX
def user_customize_function()
    ...

def configure(config)
    config.settings.mode = "paralell auto"
    config.settings.uniformsize = "fill"
    config.hotkeys["j"] = XXX
    config.hotkeys["i"] = user_customize_function
@nachifur
Copy link
Owner

nachifur commented Mar 5, 2023

A config file seems to be needed in the future. But which features require a config file needs further discussion.

The following functions require a config files. But I think it would introduce more problems.
#50

I noticed that you mentioned another issues that this feature is suitable using a config file.
#70
#65

Finally, does the introduction of configuration files affect the packaging of the portable exe? It seems to like the portable exe for many people.
image

@nachifur nachifur added enhancement New feature or request question Further information is requested labels Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants