nachifur / MulimgViewer

MulimgViewer is a multi-image viewer that can open multiple images in one interface, which is convenient for image comparison and image stitching.
https://mulimgviewer.readthedocs.io/
GNU General Public License v3.0
1.14k stars 106 forks source link

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

Closed Freed-Wu closed 1 month ago

Freed-Wu commented 1 year ago

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 commented 1 year ago

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. https://github.com/nachifur/MulimgViewer/issues/50

I noticed that you mentioned another issues that this feature is suitable using a config file. https://github.com/nachifur/MulimgViewer/issues/70 https://github.com/nachifur/MulimgViewer/issues/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 commented 2 months ago

已加入配置文件:https://github.com/nachifur/MulimgViewer/tree/aea472437ea168c461fdd172c9326edbd4b0e3f6