Add debounce script to bin/
Add debounce script to bin/

Usage: bin/debounce SLEEP_TIME EXECUTABLE

Executes EXECUTABLE after SLEEP_TIME seconds have elapsed since the last
time bin/debounce was invoked. Useful for executing a VimHook script that
should only run after a sequence of rapid-fire events have stopped arriving.

For example, if it is your tendency to fire off a succession of BufWritePost
events within say, a 5 second time period, and you really only care about
the result of the very last BufWritePost event anyway, we can use debounce
to ensure that the hook is only run when those rapid-fire BufWritePost
events have stopped arriving.

ahw/vim-hooks