micro icon indicating copy to clipboard operation
micro copied to clipboard

Update the config without closing the micro

Open DIMFLIX opened this issue 1 year ago • 4 comments

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

OS: Arch Linux Terminal: Kitty, Alacritty

DIMFLIX avatar Aug 22 '24 16:08 DIMFLIX

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].

JoeKar avatar Aug 22 '24 17:08 JoeKar

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...

DIMFLIX avatar Aug 22 '24 18:08 DIMFLIX

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 avatar Aug 22 '24 18:08 JoeKar

Any further update necessary here?

JoeKar avatar Aug 27 '24 18:08 JoeKar