Skip to content

Desktop: Drag and drop file to open/import functionality#3035

Merged
TrueDoctor merged 4 commits intomasterfrom
desktop-drop-file-functionality
Aug 11, 2025
Merged

Desktop: Drag and drop file to open/import functionality#3035
TrueDoctor merged 4 commits intomasterfrom
desktop-drop-file-functionality

Conversation

@timon-schelling
Copy link
Copy Markdown
Member

@timon-schelling timon-schelling commented Aug 9, 2025

Partly closes #2973.

Opening and importing files by dropping them into the window

  • .graphite files are opened as documents
  • .svg files are imported via PasteSvg
  • .png, .jpg and all other formats supported by the image crate are imported via PasteImage

Currently not supported on wayland see rust-windowing/winit#1881

Added x11 libs to flake because I needed them to test this through Xwayland

@timon-schelling timon-schelling changed the title Desktop drop file functionality Deskto: Drop file to open or import functionality Aug 9, 2025
@timon-schelling timon-schelling marked this pull request as ready for review August 9, 2025 16:15
@github-actions github-actions Bot temporarily deployed to graphite-dev (Preview) August 9, 2025 16:16 Inactive
@Keavon Keavon changed the title Deskto: Drop file to open or import functionality Desktop: Drag and drop file to open/import functionality Aug 10, 2025
@TrueDoctor TrueDoctor enabled auto-merge (squash) August 11, 2025 11:10
@github-actions github-actions Bot temporarily deployed to graphite-dev (Preview) August 11, 2025 11:17 Inactive
@github-actions github-actions Bot temporarily deployed to graphite-dev (Preview) August 11, 2025 11:40 Inactive
@TrueDoctor TrueDoctor merged commit fa2167d into master Aug 11, 2025
4 checks passed
@TrueDoctor TrueDoctor deleted the desktop-drop-file-functionality branch August 11, 2025 11:48
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.

Move file handling to native code

2 participants