feat: add interactive prompt for video generation #298
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
After finishing a recording, t-rec now prompts users to generate an MP4 video in addition to the GIF. This provides a convenient way to get both formats without needing to re-record or remember to pass
--videoupfront.The prompt runs in a background thread, so users can answer while the GIF is being generated - no wasted waiting time.
User Experience
After the GIF generation message appears, users see:
yto generate MP4 (no Enter required)nto skip (no Enter required)When the prompt is skipped
-q): No prompt, respects automation needs--videoor--video-onlywas used, video generates without promptingImplementation
dialoguercrate for cross-platform terminal input handlingCloses #219
Test plan
t-rec, wait for prompt, pressy→ video generatedt-rec, wait for prompt, pressn→ no videot-rec, wait 15 seconds → timeout, no videot-rec --video→ no prompt, video generatedt-rec --video-only→ no prompt, only videot-rec -q→ no prompt (quiet mode)echo "" | t-rec→ no prompt (non-interactive)