# Canvas- Auto-change connection points when connected items are moved

**URL:** <https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290>\
**Category:** Feature requests\
**Tags:** canvas\
**Created:** [December 10, 2022, 12:41am UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290 "2022-12-10T00:41:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![steveylang](https://forum.obsidian.md/user_avatar/forum.obsidian.md/steveylang/32/22849_2.png) [@steveylang](https://forum.obsidian.md/u/steveylang)\
**Post date:** [December 10, 2022, 12:41am UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290/1 "2022-12-10T00:41:29Z")

</div>

### Use case or problem

When you drag items in relation to its connected items, the connection lines can get ‘messy’ (having to pass through items to reach connection points.)

### Proposed solution

An option to have Obsidian automatically change connection points based on where items are located in relation to each other. For example, item that is moved from above/right of a connected item to below/left of it will have the connection points changed for the straightest, most direct connection possible (for all connection points of course.)

This could be system-wide, canvas-wide, or separate setting for each item (with ability to set default behavior.)

I am finding Canvas to be a great mind map tool within Obsidian, so being able to frictionlessly work with cards would be great.

### Current workaround (optional)

Manually change connection points when you move around items with connections.

---

<div class="post-metadata">

**Author:** ![liberated\_potato](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/839c29/32.png) [@liberated\_potato](https://forum.obsidian.md/u/liberated_potato)\
**Post date:** [December 19, 2022, 5:12am UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290/2 "2022-12-19T05:12:13Z")

</div>

I also felt this to be one of the main sources of friction when using canvas to create something from the ground up. The proposed solution is exactly what I thought to be a good solution and it can significantly reduce the friction associated with restructuring a canvas.

---

<div class="post-metadata">

**Author:** ![liberated\_potato](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/839c29/32.png) [@liberated\_potato](https://forum.obsidian.md/u/liberated_potato)\
**Post date:** [December 19, 2022, 5:22am UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290/3 "2022-12-19T05:22:52Z")

</div>

Found these to FRs that pretty much cover the same underlying issue.

- [Option to toggle on dynamic canvas node anchor connections](https://forum.obsidian.md/t/option-to-toggle-on-dynamic-canvas-node-anchor-connections/49660)
- [Dynamic connection line anchoring for canvas groups](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-groups/49659)

---

<div class="post-metadata">

**Author:** ![seabirdr](https://forum.obsidian.md/user_avatar/forum.obsidian.md/seabirdr/32/826_2.png) [@seabirdr](https://forum.obsidian.md/u/seabirdr)\
**Post date:** [December 19, 2022, 5:31am UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290/4 "2022-12-19T05:31:48Z")

</div>

This method will lead to new problems. What if I want to keep the connection point at a certain location? Sometimes it’s frustrating that the location of the connection can’t be controlled

---

<div class="post-metadata">

**Author:** ![liberated\_potato](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/839c29/32.png) [@liberated\_potato](https://forum.obsidian.md/u/liberated_potato)\
**Post date:** [December 19, 2022, 4:15pm UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290/5 "2022-12-19T16:15:03Z")

</div>

Yea, I agree. That scenario can be equally frustrating as well. Giving flexibility for the user to select the required behavior through some settings is important. Plus, I think, if the user can tell Obsidian, through some modifier Keys (for example, Alt + move or Ctrl + Shift + move), what type of move the user wants, it can completely solve the problem.

---

<div class="post-metadata">

**Author:** ![felixchenier](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/f/b487fb/32.png) [@felixchenier](https://forum.obsidian.md/u/felixchenier)\
**Post date:** [February 4, 2023, 2:57am UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290/6 "2023-02-04T02:57:13Z")

</div>

Hi @steveylang, @seabirdr and @liberated_potato

You may be interested in a plugin I wrote yesterday that solves exactly this:

> [@New plugin: Optimize Canvas Connections](https://forum.obsidian.md/t/new-plugin-optimize-canvas-connections/53653):
>
> Hello all! Please welcome my first plugin grin Suppose you start a canvas. [Figure 1] Then you move everything around while you brainstorm. The connections between notes may quickly become a mess. [Figure 2] This simple plugin automatically reconnect all notes together using their nearest edges. Run command Optimize Canvas Connections: Optimize (shortest path). [Figure 3] For now it can only be installed manually or using BRAT, from this address: [GitHub - felixchenier/obsidian-optimize…](https://github.com/felixchenier/obsidian-optimize-canvas-connections)

This problem of messy connection lines was a show-stopper for me, but this new plugin helps a lot. It’s not yet available on the official repo, I just filed for it to be included but I don’t know how much time it will take to make it. In the mean time, you can install it using the BRAT plugin.

Cheers!

---

<div class="post-metadata">

**Author:** ![liberated\_potato](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/839c29/32.png) [@liberated\_potato](https://forum.obsidian.md/u/liberated_potato)\
**Post date:** [February 4, 2023, 5:28am UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290/7 "2023-02-04T05:28:11Z")

</div>

Yes, thank you. I am planning to try it.

---

<div class="post-metadata">

**Author:** ![tizianomueller](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/t/c6cbf5/32.png) [@tizianomueller](https://forum.obsidian.md/u/tizianomueller)\
**Post date:** [February 6, 2023, 12:48pm UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290/8 "2023-02-06T12:48:06Z")

</div>

### Use case or problem

When creating a new node by dragging from an existing one, the direction of the arrow (and the attachment point) is always in the same direction from which I started the drag. Sometimes I would like to create a node where the arrow comes in from a different direction (and the attachment point is on a different side).

### Proposed solution

a. Define modification keys to explicitly specify the direction of the generated arrow (and attachment point on the new node).  
b. Automatically switch arrow direction (and attachment points on the new node) depending on relative position.

### Current workaround (optional)

Create node, then create connection.

### Related feature requests (optional)

---

<div class="post-metadata">

**Author:** ![liberated\_potato](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/l/839c29/32.png) [@liberated\_potato](https://forum.obsidian.md/u/liberated_potato)\
**Post date:** [February 6, 2023, 3:22pm UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290/9 "2023-02-06T15:22:59Z")

</div>

This sounds the same as this FR [Canvas- Auto-change connection points when connected items are moved](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290)

And there is this plugin (though I haven’t tried it yet) to solve this [New plugin: Optimize Canvas Connections](https://forum.obsidian.md/t/new-plugin-optimize-canvas-connections/53653)

---

<div class="post-metadata">

**Author:** ![steveylang](https://forum.obsidian.md/user_avatar/forum.obsidian.md/steveylang/32/22849_2.png) [@steveylang](https://forum.obsidian.md/u/steveylang)\
**Post date:** [February 22, 2023, 7:14pm UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290/10 "2023-02-22T19:14:23Z")

</div>

Thank you so much for this! I have only installed plugins from the community repo, but will try this one out soon either way. Cheers!

---

<div class="post-metadata">

**Author:** ![2fifty6](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/2/34f0e0/32.png) [@2fifty6](https://forum.obsidian.md/u/2fifty6)\
**Post date:** [February 14, 2024, 4:18pm UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290/11 "2024-02-14T16:18:30Z")

</div>

This would be suuuuuper handy for brainstorming in canvas!

Perhaps the most straightforward method I can envision is by adding a fifth anchor node in the middle of the canvas item in addition to the ones on each side. Dragging a connector/line to one of the side nodes would behave as it does now: tying the connector to that specific side. Dragging it to the middle node, on the other hand, would allow the connector to move to whatever side of the item is most optimal as you change the canvas layout.

This “center node” would only be visible when dragging a connector, of course. Or you could have the entire edge of the item turn bold when dragging the end of a connector into interior of the item (as opposed to one of the edges) to indicate that you are connecting it to this auto-adjust node.

---

<div class="post-metadata">

**Author:** ![untitled](https://forum.obsidian.md/user_avatar/forum.obsidian.md/untitled/32/97098_2.png) [@untitled](https://forum.obsidian.md/u/untitled)\
**Post date:** [July 8, 2024, 11:30am UTC](https://forum.obsidian.md/t/canvas-auto-change-connection-points-when-connected-items-are-moved/49290/12 "2024-07-08T11:30:56Z")

</div>

> [@Dynamic connection line anchoring for canvas nodes and groups](https://forum.obsidian.md/t/dynamic-connection-line-anchoring-for-canvas-nodes-and-groups/49659/11):
>
> [drawDB:](https://drawdb.vercel.app/editor) [Idle\_715]
