cpx2 icon indicating copy to clipboard operation
cpx2 copied to clipboard

Feature: --watch 1234 to debounce for 1234 millsecs

Open anodynos opened this issue 1 year ago • 1 comments

Hey, great project, very useful!

It would be great if --watch could optionally accept a number of milliseconds to debounce (i.e how long to wait, since the last change event was received), instead of naively responding immediately to a change.

This is useful when you copy from a src which is in a build process, so there will be a lot of files to be generated, and it should wait until all are done before copying.

It's not only for optimization & speed, cause in my actual use case it breaks when src is under a full build, and I have to restart the cpx process.... The partial build of src on the other hand works like a charm!

anodynos avatar Nov 20 '24 15:11 anodynos

Open to it.

bcomnes avatar Nov 20 '24 18:11 bcomnes