zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.84k stars 1.17k forks source link

Update the config without closing the micro #3440

Open DIMFLIX-OFFICIAL opened 3 weeks ago

DIMFLIX-OFFICIAL commented 3 weeks ago

How do I update the micro configuration without closing it? I need this for a dynamic theme change.

OS: Arch Linux Terminal: Kitty, Alacritty

JoeKar commented 3 weeks ago

With the v2.0.14-rc1 or master branch you should be able to edit and save micro's settings.json while running and use the reload command to apply the new changes from the settings.json. Or you do it the interactive way by just using set colorscheme [NAME].

DIMFLIX-OFFICIAL commented 3 weeks ago

With the v2.0.14-rc1 or master branch you should be able to edit and save micro's settings.json while running and use the reload command to apply the new changes from the settings.json. Or you do it the interactive way by just using set colorscheme [NAME].

Is this feature just coming up? I have version 2.0.13 installed using pacman.

Please show me an example of a reload command.

I just saw the reload command in micro -options

But unfortunately I did not understand how to use it...

JoeKar commented 3 weeks ago

Is this feature just coming up?

Upstream it's already available v2.0.14-rc1. Most probably it will reach the distributions when the v2.0.14 is finalized. I wasn't able to find it in the AUR yet, so no one build a upstream package so far.

The reload and set commands are documented in commands.md.

JoeKar commented 2 weeks ago

Any further update necessary here?