foundry icon indicating copy to clipboard operation
foundry copied to clipboard

watch mode re-runs after every save, even if there are not any changes

Open shafu0x opened this issue 2 years ago • 1 comments

Component

Forge

Describe the feature you would like

I think this is probably in every editor the same. I just tried it out in vim. It would be nice to only re-run everything if an actual file change happened.

Additional context

for some reason I often save even when there are no changes, so maybe I'm the only one with this problem... :man_shrugging:

shafu0x avatar Jan 17 '23 11:01 shafu0x

yeh the watch mode only listens for file events and not changed content.

I guess this could be improved by tracking the content, however unsure if worth it.

mattsse avatar Jan 27 '23 14:01 mattsse

Looks like this may now be possible as a filter program https://github.com/watchexec/watchexec/issues/204#issuecomment-2067677599

Not sure if the complexity is worth it

zerosnacks avatar Mar 25 '25 17:03 zerosnacks