hadlock icon indicating copy to clipboard operation
hadlock copied to clipboard

Hot reload/automatically reload config

Open AdaShoelace opened this issue 4 years ago • 2 comments

Hadlock should be able reload the config if the config file is modified. This means that every change change in the config file should be applied without restart of Hadlock or require to close any other application.

Suggested method: What the config file provided upon start using inotify and reconfigure Hadlock (during runtime) if an event indicating change to the config file is received.

AdaShoelace avatar Mar 31 '20 10:03 AdaShoelace

Alacritty does this. You might able to take some inspiration from that, or even reuse the code.

https://github.com/alacritty/alacritty/blob/13eb50de799c4c6f7ebed1a7fa1ab25b378580bb/alacritty/src/config/monitor.rs

wezm avatar Mar 31 '20 22:03 wezm

I planned to start working on this tonight so I am definitely gonna look into this!

AdaShoelace avatar Apr 01 '20 15:04 AdaShoelace