zed icon indicating copy to clipboard operation
zed copied to clipboard

Terminal support cmd+click abs-file(dir)

Open d1y opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the feature

yep image

If applicable, add mockups / screenshots to help present your vision of the feature

No response

d1y avatar Jan 29 '24 12:01 d1y

Hey @d1y. Cmd-click works for me as long as the path is relative to the project root directory.

Is this a request to make it support paths relative to the terminals current working directory?

mrnugget avatar Jan 29 '24 12:01 mrnugget

One issue with cmd-click is the fact that it only displays on a focused terminal, so an extra click is needed to make it happen.

https://github.com/zed-industries/zed/issues/6746

SomeoneToIgnore avatar Jan 29 '24 13:01 SomeoneToIgnore

Interesting edge case for me, line 1 (app/views/views/show.tsx:1471:in) is not CMD-clickable, but the other lines with relative file paths are:

22:28:17 web.1  | app/views/views/show.tsx:1471:in `<unknown>'
22:28:50 ssr.1  | change views/show.tsx
22:28:51 ssr.1  | [395.98ms] build client
22:28:55 ssr.1  | change views/show.tsx
22:28:55 ssr.1  | ✘ [ERROR] Expected identifier but found ")"
22:28:55 ssr.1  |
22:28:55 ssr.1  |     app/views/views/show.tsx:1471:71:
22:28:55 ssr.1  |       1471 │ ...nu.Item>{getPathDisplayName(fields, path.)}</DropdownMenu.Item>;
22:28:55 ssr.1  |            ╵                                             ^

mkdynamic avatar Apr 05 '24 05:04 mkdynamic