recharge icon indicating copy to clipboard operation
recharge copied to clipboard

Reload delay debounce

Open romanzy313 opened this issue 1 year ago • 4 comments

Added a simple de-bounce with a default delay of 200ms. On my system every file save fires the event twice, and this fixes the issue

romanzy313 avatar Jun 04 '23 18:06 romanzy313

Also added a simple clearConsole option to make it easier to see reload changes

romanzy313 avatar Jun 04 '23 19:06 romanzy313

Could you tell me your system specs? OS/arch/version? May be there is something we can do in the watcher itself.

Clear console is a nice feature 👍🏽

ajinasokan avatar Jun 05 '23 11:06 ajinasokan

I am running Debian 10.13 on amd64. Maybe it is an issue with my systems.

But I think it is still an important feature to include. If lets say you delete a folder with files, every file delete will trigger a reload. With delay, reload will be only triggered once as intended.

romanzy313 avatar Jun 05 '23 12:06 romanzy313

@romanzy313 Sorry got a bit busy. I will merge after these minor changes.

ajinasokan avatar Jun 12 '23 05:06 ajinasokan