Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fmt

Richie McIlroy7dc68e0e7b90
diff --git a/.claude/settings.local.json b/.claude/settings.local.json
index ed37b7728..7f820b11d 100644
--- a/.claude/settings.local.json
+++ b/.claude/settings.local.json
@@ -1,38 +1,38 @@
{
- "permissions": {
- "allow": [
- "Bash(pnpm typecheck:*)",
- "Bash(pnpm lint:*)",
- "Bash(pnpm build:*)",
- "Bash(cargo check:*)",
- "Bash(cargo fmt:*)",
- "Bash(pnpm format:*)",
- "Bash(pnpm exec biome check:*)",
- "Bash(grep:*)",
- "Bash(cargo metadata:*)",
- "Bash(ffprobe:*)",
- "Bash(ls:*)",
- "Bash(find:*)",
- "Bash(cat:*)",
- "WebFetch(domain:raw.githubusercontent.com)",
- "WebFetch(domain:api.github.com)",
- "Bash(cargo doc:*)",
- "Bash(cargo clippy:*)",
- "Bash(python3:*)",
- "Bash(cargo run:*)",
- "WebSearch",
- "Bash(xargs ls:*)",
- "WebFetch(domain:ffmpeg.org)",
- "Bash(git log:*)",
- "Bash(tree:*)",
- "Bash(tail:*)",
- "Bash(pnpm typecheck:desktop:*)",
- "Bash(pnpm exec tsc:*)",
- "Bash(pnpm biome check:*)",
- "Bash(pnpm --dir apps/desktop exec tsc:*)",
- "Bash(xxd:*)"
- ],
- "deny": [],
- "ask": []
- }
+ "permissions": {
+ "allow": [
+ "Bash(pnpm typecheck:*)",
+ "Bash(pnpm lint:*)",
+ "Bash(pnpm build:*)",
+ "Bash(cargo check:*)",
+ "Bash(cargo fmt:*)",
+ "Bash(pnpm format:*)",
+ "Bash(pnpm exec biome check:*)",
+ "Bash(grep:*)",
+ "Bash(cargo metadata:*)",
+ "Bash(ffprobe:*)",
+ "Bash(ls:*)",
+ "Bash(find:*)",
+ "Bash(cat:*)",
+ "WebFetch(domain:raw.githubusercontent.com)",
+ "WebFetch(domain:api.github.com)",
+ "Bash(cargo doc:*)",
+ "Bash(cargo clippy:*)",
+ "Bash(python3:*)",
+ "Bash(cargo run:*)",
+ "WebSearch",
+ "Bash(xargs ls:*)",
+ "WebFetch(domain:ffmpeg.org)",
+ "Bash(git log:*)",
+ "Bash(tree:*)",
+ "Bash(tail:*)",
+ "Bash(pnpm typecheck:desktop:*)",
+ "Bash(pnpm exec tsc:*)",
+ "Bash(pnpm biome check:*)",
+ "Bash(pnpm --dir apps/desktop exec tsc:*)",
+ "Bash(xxd:*)"
+ ],
+ "deny": [],
+ "ask": []
+ }
}
diff --git a/apps/desktop/src-tauri/src/recovery.rs b/apps/desktop/src-tauri/src/recovery.rs
index 442f8773c..32be35bf5 100644
--- a/apps/desktop/src-tauri/src/recovery.rs
+++ b/apps/desktop/src-tauri/src/recovery.rs
@@ -85,9 +85,10 @@ pub async fn recover_recording(app: AppHandle, project_path: String) -> Result<S
StudioRecordingMeta::SingleSegment { segment } => {
segment.display.path.to_path(&recovered.project_path)
}
- StudioRecordingMeta::MultipleSegments { inner, .. } => {
- inner.segments[0].display.path.to_path(&recovered.project_path)
- }
+ StudioRecordingMeta::MultipleSegments { inner, .. } => inner.segments[0]
+ .display
+ .path
+ .to_path(&recovered.project_path),
};
let screenshots_dir = recovered.project_path.join("screenshots");
diff --git a/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx b/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx
index 1a2208938..0e6ba2a7d 100644
--- a/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx
+++ b/apps/desktop/src/routes/(window-chrome)/settings/experimental.tsx
@@ -91,7 +91,9 @@ function Inner(props: { initialStore: GeneralSettingsStore | null }) {
label="Crash-recoverable recording"
description="Records in fragmented segments that can be recovered if the app crashes or your system loses power. May have slightly higher storage usage during recording."
value={!!settings.crashRecoveryRecording}
- onChange={(value) => handleChange("crashRecoveryRecording", value)}
+ onChange={(value) =>
+ handleChange("crashRecoveryRecording", value)
+ }
/>
</div>
</div>