This repository was archived by the owner on May 12, 2026. It is now read-only.
feat: drag-and-drop .md/.txt/.html files to sidebar creates new documents#1683
Open
mrzhangkris wants to merge 1 commit into
Open
feat: drag-and-drop .md/.txt/.html files to sidebar creates new documents#1683mrzhangkris wants to merge 1 commit into
mrzhangkris wants to merge 1 commit into
Conversation
- Added dropFilesInWorkspace handler to useCloudDnd hook - Modified dropInWorkspace to detect file drops vs resource drops - Workspace onDrop handler now routes files to dropFilesInWorkspace - createDoc receives file content as initial doc body (for .md/.txt/.html) - Closes BoostIO#1151 (IssueHunt bounty)
cc136e5 to
6bc4a43
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Allow users to drag and drop .md, .txt, or .html files directly onto a workspace in the sidebar to create new documents with the file content as the initial content.
Changes
dropFilesInWorkspacecallback that reads dropped files and callscreateDocfor each supported file typedropInWorkspaceto detect file drops vs internal resource drags and route accordinglydropFilesInWorkspaceSupported file types
Closes
Fixes #1151
This PR is for IssueHunt bounty: https://oss.issuehunt.io/r/BoostIO/BoostNote-App/issues/1151