Skip to content

Commit 10a8582

Browse files
authored
feat: make 3s the default idle-pause for more readable demo recordings (#288)
- following up with the discussion on #267 (comment) - adding now 3s default idle-pause --------- Signed-off-by: Sven Kanoldt <sven@d34dl0ck.me>
1 parent 2719629 commit 10a8582

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Options:
166166
-s, --start-pause <s | ms | m> to specify the pause time at the start of the animation, that time
167167
the gif will show the first frame
168168
-i, --idle-pause <s | ms | m> to preserve natural pauses up to a maximum duration by overriding
169-
idle detection. Can enhance readability.
169+
idle detection. Can enhance readability. [default: 3s]
170170
-o, --output <file> to specify the output file (without extension) [default: t-rec]
171171
-h, --help Print help
172172
-V, --version Print version
@@ -185,6 +185,8 @@ t-rec --idle-pause 1s # Show 1 second of unchanged content before optimiz
185185
t-rec --idle-pause 500ms # Show 500ms of idle time
186186
```
187187

188+
NOTE: The default value is `3s`.
189+
188190
### Enable shadow border decor
189191

190192
In order to enable the drop shadow border decor you have to pass `-d shadow` as an argument. If you only want to change

src/cli.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ pub fn launch() -> ArgMatches {
110110
.required(false)
111111
.short('i')
112112
.long("idle-pause")
113+
.default_value("3s")
113114
.help("to preserve natural pauses up to a maximum duration by overriding idle detection. Can enhance readability."),
114115
)
115116
.arg(

0 commit comments

Comments
 (0)