# Add mouse context action to copy permalink \(\#13247\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 47174cea50017be0f200875cc250c9a68b78d590

Requested commit: 47174cea50017be0f200875cc250c9a68b78d590

Commit: 47174cea50017be0f200875cc250c9a68b78d590

Tree: 41056f8117542b781216831a9710d2a8f41d4416

Author: Stefan

Committer: GitHub

## Message

```
Add mouse context action to copy permalink (#13247)

<img width="977" alt="Screenshot 2024-06-19 at 00 24 21"
src="https://github.com/zed-industries/zed/assets/5855806/8bdb46ad-2d81-45d0-853b-c1d0cc0fc037">

Selecting the item results in the following link
https://github.com/zed-industries/zed/blob/a8c19ab8958a932fc9b7b66e8a0659bf3e3ebcc2/crates/assets/Cargo.toml#L12
for me.

## Summary

Switching from PyCharm, my number one most missed feature is "Copy
Github link" provided by the Gitlink plugin
(https://plugins.jetbrains.com/plugin/8183-gitlink /
https://github.com/ben-gibson/GitLink). I use this a lot to quickly send
code pointers to teammates.

While digging around, I found that this is basically already
implemented, but wasn't able to find this action exposed anywhere in the
UI.


https://github.com/zed-industries/zed/blob/a8c19ab8958a932fc9b7b66e8a0659bf3e3ebcc2/crates/editor/src/editor.rs#L10343-L10367

Release Notes:

- Added mouse context action to copy permalink to line
```

## Parents

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

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