# FR: Duplicate node selection & Duplicate with wires

**URL:** <https://discourse.nodered.org/t/fr-duplicate-node-selection-duplicate-with-wires/41905>\
**Category:** Feature Requests\
**Created:** [2 March 2021 16:30 UTC](https://discourse.nodered.org/t/fr-duplicate-node-selection-duplicate-with-wires/41905 "2021-03-02T16:30:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daxliniere](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/daxliniere/32/42187_2.png) [@daxliniere](https://discourse.nodered.org/u/daxliniere)\
**Post date:** [2 March 2021 16:30 UTC](https://discourse.nodered.org/t/fr-duplicate-node-selection-duplicate-with-wires/41905/1 "2021-03-02T16:30:15Z")

</div>

Hey team,  
It would be awesome if we had keyboard shortcuts for:

1. Duplicate node selection - This is the same as copy, then paste, but a single action.

2. Duplicate node selection (with wires) - This would be the same as above, but would 'paste' a copy of the selected node(s) with their wires still attached. This would be a huge time-saver.

All the best,  
Dax.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 March 2021 17:12 UTC](https://discourse.nodered.org/t/fr-duplicate-node-selection-duplicate-with-wires/41905/2 "2021-03-02T17:12:33Z")

</div>

> [@daxliniere](#):
>
> Duplicate node selection - This is the same as copy, then paste, but a single action

Is it too difficult to press CTRL+C CTRL+V?

> [@daxliniere](#):
>
> Duplicate node selection (with wires) - This would be the same as above, but would 'paste' a copy of the selected node(s) with their wires still attached. This would be a huge time-saver.

That is already what happens. Am I missing something?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [2 March 2021 17:34 UTC](https://discourse.nodered.org/t/fr-duplicate-node-selection-duplicate-with-wires/41905/3 "2021-03-02T17:34:53Z")

</div>

> [@Steve-Mcl](#):
>
> Is it too difficult to press CTRL+C CTRL+V?

It isn't necessarily about difficultly - have a duplicate selection option is actually fairly common.

> [@daxliniere](#):
>
> Duplicate node selection (with wires) -

@Steve-Mcl I think the subtle difference here is how wires that join a selected node to an unselected node are handled.

If you have an Inject + Debug node wired together. If you select both, copy and paste, you get a new pair of nodes that are wired together.

If you select just the Debug node and copy/paste - you get a copy of the Debug node but it is not wired to the Inject node.

The proposal here, I believe, is to have an action that will duplicate the Debug node, as well as the wire to the Inject node.

Adding a Duplicate Selection action will be simple to do - its between 1 and 3 lines of code depending how verbose I chose to write it.

Adding a Duplicate With Wires action will be a bit more work, including coming up with the right name. It needs to have a sensible name that makes it clear what it does.... suggestions on a postcard please.

---

<div class="post-metadata">

**Author:** ![daxliniere](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/daxliniere/32/42187_2.png) [@daxliniere](https://discourse.nodered.org/u/daxliniere)\
**Post date:** [2 March 2021 18:17 UTC](https://discourse.nodered.org/t/fr-duplicate-node-selection-duplicate-with-wires/41905/4 "2021-03-02T18:17:38Z")

</div>

Yes, Nick's got it in one.

**Duplicate Node(s)** or **Duplicate Selected Node(s)** seems right to me.  
Perhaps **Duplicate Node(s) with All Wires**? or " **with Leading Wires**"?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 May 2021 18:18 UTC](https://discourse.nodered.org/t/fr-duplicate-node-selection-duplicate-with-wires/41905/5 "2021-05-01T18:18:13Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
