Drop debounce to 150ms (#168)
This commit is contained in:
parent
03aad1caaa
commit
139b6b43c7
|
@ -22,7 +22,7 @@ args=(
|
|||
'(-V --version)'{-V,--version}'[Prints version information]'
|
||||
'(-v --verbose)'{-v,--verbose}'[Print debugging messages to stderr]'
|
||||
'--changes-only[Print changed paths to stderr for pattern debugging]'
|
||||
'(-d --debounce)'{-d+,--debounce=}'[Set the timeout between detected change and command execution, defaults to 500ms]:milliseconds'
|
||||
'(-d --debounce)'{-d+,--debounce=}'[Set the timeout between detected change and command execution, defaults to 150ms]:milliseconds'
|
||||
'(-e --exts)'{-e+,--exts=}'[Comma-separated list of file extensions to watch (js,css,html)]:extensions'
|
||||
'(-f --filter)'{-f+,--filter=}'[Ignore all modifications except those matching the pattern]:pattern'
|
||||
'(-i --ignore)'{-i+,--ignore=}'[Ignore modifications to paths matching the pattern]:pattern'
|
||||
|
|
|
@ -92,7 +92,7 @@ Poll for changes every \fIinterval\fR ms instead of using system\-specific notif
|
|||
.
|
||||
.TP
|
||||
\fB\-d\fR, \fB\-\-debounce\fR
|
||||
Set the timeout between detected change and command execution, to avoid restarting too frequently when there are many events; defaults to 500ms\.
|
||||
Set the timeout between detected change and command execution, to avoid restarting too frequently when there are many events; defaults to 150ms\.
|
||||
.
|
||||
.TP
|
||||
\fB\-\-no\-vcs\-ignore\fR
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
<dt><code>-c</code>, <code>--clear</code></dt><dd><p>Clears the screen before executing <var>command</var>.</p></dd>
|
||||
<dt><code>-p</code>, <code>--postpone</code></dt><dd><p>Postpone execution of <var>command</var> until the first file modification is detected.</p></dd>
|
||||
<dt><code>--force-poll</code> <var>interval</var></dt><dd><p>Poll for changes every <var>interval</var> ms instead of using system-specific notification mechanisms (such as inotify). This is useful when you are monitoring NFS shares.</p></dd>
|
||||
<dt><code>-d</code>, <code>--debounce</code></dt><dd><p>Set the timeout between detected change and command execution, to avoid restarting too frequently when there are many events; defaults to 500ms.</p></dd>
|
||||
<dt><code>-d</code>, <code>--debounce</code></dt><dd><p>Set the timeout between detected change and command execution, to avoid restarting too frequently when there are many events; defaults to 150ms.</p></dd>
|
||||
<dt><code>--no-vcs-ignore</code></dt><dd><p>Skip loading of version control system (VCS) ignore files. By default, watchexec loads .gitignore files in the current directory (or parent directories) and uses them to populate the ignore list.</p></dd>
|
||||
<dt><code>--no-default-ignore</code></dt><dd><p>Skip default ignore statements. By default, watchexec ignores common temporary files for you, for example <code>*.swp</code>, <code>*.pyc</code>, and <code>.DS_Store</code>.</p></dd>
|
||||
<dt><code>-v</code>, <code>--verbose</code></dt><dd><p>Prints diagnostic messages to STDERR.</p></dd>
|
||||
|
|
|
@ -68,7 +68,7 @@ Postpone execution of <command> until the first file modification is detected.
|
|||
Poll for changes every <interval> ms instead of using system-specific notification mechanisms (such as inotify). This is useful when you are monitoring NFS shares.
|
||||
|
||||
* `-d`, `--debounce`:
|
||||
Set the timeout between detected change and command execution, to avoid restarting too frequently when there are many events; defaults to 500ms.
|
||||
Set the timeout between detected change and command execution, to avoid restarting too frequently when there are many events; defaults to 150ms.
|
||||
|
||||
* `--no-vcs-ignore`:
|
||||
Skip loading of version control system (VCS) ignore files. By default, watchexec loads .gitignore files in the current directory (or parent directories) and uses them to populate the ignore list.
|
||||
|
|
|
@ -72,7 +72,7 @@ where
|
|||
.short("k")
|
||||
.long("kill"))
|
||||
.arg(Arg::with_name("debounce")
|
||||
.help("Set the timeout between detected change and command execution, defaults to 500ms")
|
||||
.help("Set the timeout between detected change and command execution, defaults to 150ms")
|
||||
.takes_value(true)
|
||||
.value_name("milliseconds")
|
||||
.short("d")
|
||||
|
|
|
@ -44,7 +44,7 @@ pub struct Config {
|
|||
#[builder(default)]
|
||||
pub on_busy_update: OnBusyUpdate,
|
||||
/// Interval to debounce the changes.
|
||||
#[builder(default = "Duration::from_millis(500)")]
|
||||
#[builder(default = "Duration::from_millis(150)")]
|
||||
pub debounce: Duration,
|
||||
/// Run the commands right after starting.
|
||||
#[builder(default = "true")]
|
||||
|
|
Loading…
Reference in New Issue