Skip to content

git_ui: Add option to jump to project file from commit - #55088

Merged
NeelChotai merged 1 commit into
mainfrom
neel/open-file-at-head
Apr 29, 2026
Merged

git_ui: Add option to jump to project file from commit#55088
NeelChotai merged 1 commit into
mainfrom
neel/open-file-at-head

Conversation

@NeelChotai

@NeelChotai NeelChotai commented Apr 28, 2026

Copy link
Copy Markdown
Member

Using the Open File action from a file in commit context takes you to a read-only snapshot of the file at the point in time of the commit. This change makes it so you navigate to the current working copy of the file, if one exists. This has similar semantics to copy file reference.

For a file that still exists at HEAD:
image

For a file that no longer exists:
image

Release Notes:

  • Add affordance to jump to project file from commit view

Using the `Open File` action from a file in commit context takes you to
a read-only snapshot of the file at the point in time of the commit.
This change makes it so you navigate to the current working copy of the
file, if one exists. This has similar semantics to copy file reference.
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Apr 28, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Apr 28, 2026
@NeelChotai
NeelChotai added this pull request to the merge queue Apr 29, 2026
Merged via the queue into main with commit f88ab1b Apr 29, 2026
43 checks passed
@NeelChotai
NeelChotai deleted the neel/open-file-at-head branch April 29, 2026 12:11
ebaah46 pushed a commit to ebaah46/zed that referenced this pull request May 6, 2026
…s#55088)

Using the `Open File` action from a file in commit context takes you to
a read-only snapshot of the file at the point in time of the commit.
This change makes it so you navigate to the current working copy of the
file, if one exists. This has similar semantics to copy file reference.

For a file that still exists at HEAD:
<img width="715" height="469" alt="image"
src="https://github.com/user-attachments/assets/e217e0be-b549-46fa-9d1b-eba92728fa4a"
/>

For a file that no longer exists:
<img width="438" height="271" alt="image"
src="https://github.com/user-attachments/assets/ac87465b-971b-4413-8bf3-71e49a71bdea"
/>

Release Notes:

- Add affordance to jump to project file from commit view
jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
…s#55088)

Using the `Open File` action from a file in commit context takes you to
a read-only snapshot of the file at the point in time of the commit.
This change makes it so you navigate to the current working copy of the
file, if one exists. This has similar semantics to copy file reference.

For a file that still exists at HEAD:
<img width="715" height="469" alt="image"
src="https://github.com/user-attachments/assets/e217e0be-b549-46fa-9d1b-eba92728fa4a"
/>

For a file that no longer exists:
<img width="438" height="271" alt="image"
src="https://github.com/user-attachments/assets/ac87465b-971b-4413-8bf3-71e49a71bdea"
/>

Release Notes:

- Add affordance to jump to project file from commit view
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…s#55088)

Using the `Open File` action from a file in commit context takes you to
a read-only snapshot of the file at the point in time of the commit.
This change makes it so you navigate to the current working copy of the
file, if one exists. This has similar semantics to copy file reference.

For a file that still exists at HEAD:
<img width="715" height="469" alt="image"
src="https://github.com/user-attachments/assets/e217e0be-b549-46fa-9d1b-eba92728fa4a"
/>

For a file that no longer exists:
<img width="438" height="271" alt="image"
src="https://github.com/user-attachments/assets/ac87465b-971b-4413-8bf3-71e49a71bdea"
/>

Release Notes:

- Add affordance to jump to project file from commit view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants