Skip to content

feat(export): add the source app and window title to file names - #123

Merged
bitdan merged 2 commits into
masterfrom
feat/filename-source-window
Nov 28, 2026
Merged

bitdan merged 2 commits into
masterfrom
feat/filename-source-window

Conversation

@bitdan

@bitdan bitdan commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • Two new export settings, "文件名包含进程名" and "文件名包含窗口标题" (off by default): file names become prefix-time[-app][-title][-WxH].
  • The capture session remembers each top-level window's app name and title; save and quick save use the topmost window under the selection center. Names are cleaned into safe file name parts (reserved and control characters replaced, .exe dropped, 40 characters max).
  • Older settings files and backups without the new keys still load.
  • Merge note: touches the capture Session constructor like feat/capture-free-shapes; whichever lands second needs a small conflict fix (keep both sets of fields).

Test plan

  • cargo check -p snap-desk-gpui (no warnings)
  • cargo test -p snap-desk-gpui, cargo test -p snap-core --lib
  • Built into a local standalone preview together with the other branches of this round

🤖 Generated with Claude Code

bitdan and others added 2 commits November 28, 2026 14:08
- Two new export settings, "文件名包含进程名" and "文件名包含窗口标题"
  (off by default): file names become prefix-time[-app][-title][-WxH].
- The capture session remembers each top-level window's app name and
  title; save and quick save use the topmost window under the selection
  center. Names are cleaned into safe file name parts (reserved and
  control characters replaced, ".exe" dropped, 40 characters max).
- Older settings files and backups without the new keys still load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e-window

# Conflicts:
#	apps/desktop-gpui/src/capture.rs
@bitdan
bitdan merged commit cd54a3a into master Nov 28, 2026
3 checks passed
@bitdan
bitdan deleted the feat/filename-source-window branch November 28, 2026 10:29
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.

1 participant