# editor: Add line range support to editor::CopyFileLocation command \(\#51328\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4d5e25f4088025ee4f837c25c7832ac2fe9c7fad

Requested commit: 4d5e25f4088025ee4f837c25c7832ac2fe9c7fad

Commit: 4d5e25f4088025ee4f837c25c7832ac2fe9c7fad

Tree: e9e1d20c3538584a64be612fc4d50428e469843e

Author: Shashank Suresh

Committer: GitHub

## Message

```
editor: Add line range support to editor::CopyFileLocation command (#51328)

Closes #51309

Before you mark this PR as ready for review, make sure that you have:
- [X] Added a solid test coverage and/or screenshots from doing manual
testing
- [X] Done a self-review taking into account security and performance
aspects
- [X] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Improved `editor::CopyFileLocation` command to include the full
selected line range (e.g. 'src/main.rs:12-18') when multiple lines are
selected, rather than only the first line number.
```

## Parents

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

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