Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Connect multiple nodes at once #142

Open
dentistfrankchen opened this issue Jan 20, 2025 · 3 comments
Open

[FR] Connect multiple nodes at once #142

dentistfrankchen opened this issue Jan 20, 2025 · 3 comments
Labels
feature request New feature or request incomplete Not every aspect is covered. More information needed.

Comments

@dentistfrankchen
Copy link

I found a feature that has been ignored for a long time.

Imagine you have a parent node, and several children nodes:

Image

I hope I can select all chidren nodes, and connect them at once:

Image

This is a feature that has been proposed for a long time, and posted in several posts:
https://forum.obsidian.md/t/connecting-multiple-canvas-nodes-at-once/70420
https://forum.obsidian.md/t/how-to-connect-two-canvas-nodes-in-obsidian-graph-view/78805

I think this should not be very technically challenging, so I hope maybe someone can fix this.

Thank you!

@dentistfrankchen
Copy link
Author

I think this will not cause too much work.

This is what I have thought:

  1. find all rightmost achor point of all selected cards;

Image

  1. Use a for loop or something like this to draw connection lines between the activated anchor point and the selected cards.

Image

@dentistfrankchen
Copy link
Author

dentistfrankchen commented Jan 20, 2025

I think if this technique will also solve #122 #135 , at least partly solve.
I think you can add a "multiple select" button to the ribbon, then the plugin can collect all the object of the selected items, then it can conduct operations.

Also, this can also introduce important technical support for creating midmaps. #21

@Developer-Mike
Copy link
Owner

Thank you for sharing your idea. First of all, I want to mention that the second forms link isn't related to the FR at all. And while I quite like the idea, I can't figure out how the user would control which node gets connected to the other ones. How should he control which node is the "main" node that connects to the others and what e.g. the direction of the edge should be. Feel free to share your ideas for dealing with those difficulties.

@Developer-Mike Developer-Mike added feature request New feature or request incomplete Not every aspect is covered. More information needed. labels Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request incomplete Not every aspect is covered. More information needed.
Projects
None yet
Development

No branches or pull requests

2 participants