toeverything / AFFiNE

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
https://affine.pro
Other
39.91k stars 2.57k forks source link

Drag and drop to open an item from sidebar #7505

Closed xuzuodong closed 3 weeks ago

xuzuodong commented 1 month ago

Description

It would be nice if we can open an item from App sidebar by dragging and dropping it into the main container.


Currently, when a favorited item displayed at App sidebar being dragged and dropped into the main container, it will be removed from the favorite list. Any other entries at App sidebar (i.e. "All docs", "Journals", items in "Collections" and "Trash") don't have drag-and-drop behaviors yet.

IMO, a more intuitive behavior is when these entries are dragged and dropped into the main container, they should be opened.

In addition, now SplitView feature have been implemented, the dropped item can further be opened in either single or split view, depends on what specific place user's mouse is pointing at when the item is dropped.

Similar behavior can be found in VSCode:

https://github.com/user-attachments/assets/34649e6a-e8ff-47ee-8ded-dedaad9c0119

Use case

No response

Anything else?

No response

Are you willing to submit a PR?

affine-issue-bot[bot] commented 1 month ago

Issue Status: 💬 To be Discussed

💬 To be Discussed

We need some time to discuss the issue.

This is an automatic reply by the bot.

forehalo commented 3 weeks ago

@hwangdev97

hwangdev97 commented 3 weeks ago

We need some time to design the interaction experience for this part. The drag behavior of the sidebar in a whiteboard-like document tool can have multiple semantics:

Additionally, in terms of infra, we also need some time to prepare.