# Add ability to clone item when using \`workspace::MoveItemToPane\` \(\#32895\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/95f10fd1876a3555a37db54d35a2e0380aaceebf)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 95f10fd1876a3555a37db54d35a2e0380aaceebf

Requested commit: 95f10fd1876a3555a37db54d35a2e0380aaceebf

Commit: 95f10fd1876a3555a37db54d35a2e0380aaceebf

Tree: ee4c562c5cbd37940456ab545b19f71cf3e300d4

Author: Carl Sverre

Committer: GitHub

## Message

```
Add ability to clone item when using `workspace::MoveItemToPane` (#32895)

This PR adds an optional `clone: bool` argument to
`workspace::MoveItemToPane` and `workspace::MoveItemToPaneInDirection`
which causes the item to be cloned into the destination pane rather than
moved. It provides similar functionality to
`workbench.action.splitEditorToRightGroup` in vscode.

This PR supercedes #25030.

Closes #24889

Release Notes:

- Add optional `clone: bool` (default: `false`) to
`workspace::MoveItemToPane` and `workspace::MoveItemToPaneInDirection`
which causes the item to be cloned into the destination pane rather than
moved.
```

## Parents

- [324cbecb7465b99cfb57166d9e8a9065d7b75aa0](https://git.cafe/gitcafe/zed/commit/324cbecb7465b99cfb57166d9e8a9065d7b75aa0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/95f10fd1876a3555a37db54d35a2e0380aaceebf?format=markdown)
