Skip to content

feat: Open editor or file when .cap file is opened - #421

Merged
Brendonovich merged 10 commits into
mainfrom
cap-file-open
Apr 13, 2025
Merged

Brendonovich merged 10 commits into
mainfrom
cap-file-open

Conversation

@richiemcilroy

Copy link
Copy Markdown
Member

Cap files (.cap) now open directly in the editor for Studio Mode recordings, or opens the .mp4 file for Instant Mode recordings.

Works with drag and drop into the app, or double click of the .cap file.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • apps/desktop/src-tauri/tauri.conf.json: Language not supported
Comments suppressed due to low confidence (1)

apps/desktop/src-tauri/src/lib.rs:2492

  • Using unwrap_or_default for the path conversion may result in an empty string if the path is non-UTF-8, which could lead to unexpected behavior. Consider handling the conversion more robustly by checking if to_str() returns a valid string and logging an error or providing a fallback if it fails.
.open(mp4_path.to_str().unwrap_or_default(), None);

This branch was successfully deployed

1 active deployment
Preview — 778e5e5f Deployed Apr 13, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants