feat: add recording control deeplinks and Raycast extension#1587
Open
buildingvibes wants to merge 7 commits intoCapSoftware:mainfrom
Open
feat: add recording control deeplinks and Raycast extension#1587buildingvibes wants to merge 7 commits intoCapSoftware:mainfrom
buildingvibes wants to merge 7 commits intoCapSoftware:mainfrom
Conversation
…are#1540) Extend the existing deeplink system with new actions for controlling recordings and device switching, then build a Raycast extension that uses those deeplinks for hands-free Cap control. New deeplink actions added to DeepLinkAction enum: - PauseRecording, ResumeRecording, TogglePauseRecording - SetCamera (switch or disable camera during/before recording) - SetMicrophone (switch or disable microphone during/before recording) - TakeScreenshot (capture a screenshot of a specified display/window) Also refactored the capture target resolution into a shared resolve_capture_target helper to reduce duplication. Raycast extension (raycast/) provides commands for: - Start/Stop/Pause/Resume/Toggle-pause recording - Switch microphone (lists system audio input devices) - Switch camera (lists system cameras) - Take screenshot - Open settings
Remove unused parseMicrophones function and dynamically detect the primary display name instead of hardcoding "Main Display" so the deeplinks work on any machine regardless of display naming.
- Use name.as_str() instead of *name deref in resolve_capture_target - Use ok_or_else for lazy error string allocation - Convert start-recording and take-screenshot to List views that enumerate displays via system_profiler instead of hardcoding - Update package.json command modes to "view" for display selection
Remove hardcoded "Main Display" fallback in start-recording and take-screenshot parseDisplays, and remove bogus "FaceTime HD Camera" fallback in switch-camera. When system_profiler parsing yields no results, return an empty list instead of guessing names that will fail on the desktop deeplink handler side.
ddc79ff to
3d8de3e
Compare
- Tighten DeepLinkAction type to string union for unit actions - Add exact-match hint to error messages in resolve_capture_target - Fix license field to match repo (AGPL-3.0-or-later)
Author
|
Addressed remaining review feedback:
Working on a demo video to showcase all commands. |
Author
Demo VideoThis demo showcases:
The video demonstrates how users can now control Cap recordings through deeplinks, enabling powerful automation and launcher integrations like Raycast. |
Author
|
Hi team! Just following up - I've addressed all the review feedback from the automated reviewers (device ID handling, error messages, license field, TypeScript types) and posted a demo video showing the deeplinks and Raycast extension working. Would love to get a maintainer's eyes on this when you have a chance. Happy to make any further adjustments! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
DeepLinkActionenum with 6 new actions:PauseRecording,ResumeRecording,TogglePauseRecording,SetCamera,SetMicrophone,TakeScreenshotresolve_capture_targetinto shared helper to reduce duplicationFixes #1540
Test plan
cap-desktop://action?value=<json>/claim Bounty: Deeplinks support + Raycast Extension #1540