You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After creating/modifying multiple files in a git repo and executing the git:diff command from the editor, the diff view opens but does not retain the original file and cursor position. This can cause confusion and disrupts workflow context.
Information: I use vim mode. But the error should be reproducable even without using vim mode.
Steps to trigger the problem:
Open a git project
Add the following files with (filename and order of the creation could be relevant) and write some text with several lines inside, save each of them a.txt, c.txt , b.txt.
Go to the b.txt file and place the cursor somewhere in the middle in a line
Execute the git:diff command and look, where the cursor is placed
Actual Behavior:
The git diff view opens, but the last file in the git diff list is focused.
Expected Behavior:
When the git diff view opens, the cursor should retain focus on the original file and line position in the editor from which the git:diff command was triggered.
Summary
After creating/modifying multiple files in a git repo and executing the
git:diff
command from the editor, the diff view opens but does not retain the original file and cursor position. This can cause confusion and disrupts workflow context.Information: I use vim mode. But the error should be reproducable even without using vim mode.
Steps to trigger the problem:
a.txt
,c.txt
,b.txt
.git:diff
command and look, where the cursor is placedActual Behavior:

The git diff view opens, but the last file in the git diff list is focused.
Expected Behavior:
When the git diff view opens, the cursor should retain focus on the original file and line position in the editor from which the
git:diff
command was triggered.Zed Version and System Specs
Zed: v0.176.3 (Zed)
OS: macOS 15.3.1
Memory: 16 GiB
Architecture: aarch64
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.Zed.log
The text was updated successfully, but these errors were encountered: