MulimgViewer icon indicating copy to clipboard operation
MulimgViewer copied to clipboard

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

Open Freed-Wu opened this issue 1 year ago • 1 comments

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

Freed-Wu avatar Mar 05 '23 09:03 Freed-Wu