Filename links in terminal should consider `pwd`

#34027

Issue Details

about 1 month ago
No assignee
terminalgood first issue
ananddtyagiananddtyagi
opened about 1 month ago
Author

Summary

When clicking on a file listed in the integrated terminal, it opens the file first associated at the top level of the workspace instead of the actual file.

Description

Steps to reproduce:

mkdir /tmp/issue34027 cd $_ zed .

In Zed terminal:

mkdir foo touch test.txt touch foo/test.txt cd foo echo "test.txt"
  1. Command + click test.txt -> this will open /tmp/issue34027/test.txt not /tmp/issue34027/foo
Image

Expected Behavior: Zed opens foo/test.txt Actual Behavior: Zed opens test.txt (not in the subfolder)

Zed Version and System Specs

Zed: v0.193.3 (Zed) OS: macOS 15.5.0 Memory: 48 GiB Architecture: aarch64