# Centralize the \`CopyPath\` and \`CopyRelativePath\` actions to \`zed_actions\` \(\#24836\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5d26ce14d770b565e21e3975ec36160ee4b288ac

Requested commit: 5d26ce14d770b565e21e3975ec36160ee4b288ac

Commit: 5d26ce14d770b565e21e3975ec36160ee4b288ac

Tree: 65bd14af3c3cbc523dbe3f8bddbbfc09e037e643

Author: Mikayla Maki

Committer: GitHub

## Message

```
Centralize the `CopyPath` and `CopyRelativePath` actions to `zed_actions` (#24836)

I spent an hour with @marcospb19 this morning debugging an issue with
adding `Copy Path` and `Copy Relative Path` actions to the editor
context menu. Turned out that the problem was using
`workspace::CopyPath` in the menu and `editor::CopyPath` in the action
handler.

This is an easy mistake to make, so let's fix it for everyone.

Release Notes:

- N/A
```

## Parents

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

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