# Open relative file links at line numbers \(\#61006\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 54f2b5df1db73e13e70b79dbc7b5e93a595c0f41

Requested commit: 54f2b5df1db73e13e70b79dbc7b5e93a595c0f41

Commit: 54f2b5df1db73e13e70b79dbc7b5e93a595c0f41

Tree: 01a7feedbb1499c38d1f8424d52ee71ca4bd05ee

Author: MartinYe1234

Committer: GitHub

## Message

```
Open relative file links at line numbers (#61006)

## Summary

- Open relative file links with GitHub-style line fragments at the
referenced line
- Support line navigation from agent responses and Markdown previews
- Preserve decoded-first path resolution with literal percent-escape
fallback

## Testing

- cargo test -q -p util test_source_line_from_fragment -- --nocapture
- cargo test -q -p acp_thread test_hyperlink_percent_escapes_are_decoded
-- --nocapture
- cargo test -q -p agent_ui test_open_link -- --nocapture
- cargo test -q -p markdown_preview -- --nocapture
- cargo fmt --all -- --check

Release Notes:

- Improved relative file links with line numbers to open at the
referenced line.
```

## Parents

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

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