Describe the Bug
Hello.
Everywhere I look I find that cursor
and code
CLI commands are the exact same, however when running cursor $(git diff --no-commit-id --name-only -r HEAD) -r
, instead of the files opening in the same window, a new Cursor window spawns and that’s where they open. I don’t have this issue with VSCode and the same command (but with code
, of course).
Steps to Reproduce
- Open project managed with Git in Cursor
- Work on files, don’t stage or commit changes
- Open Powershell terminal in the same Cursor window
- Run
cursor $(git diff --no-commit-id --name-only -r HEAD) -r
Expected Behavior
The files should open in the same window that is already open.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.2.2 (user setup)
VSCode Version: 1.99.3
Commit: faa03b17cce93e8a80b7d62d57f5eda6bb6ab9f0
Date: 2025-07-07T06:19:13.016Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
Additional Information
Cursor is installed via scoop
https://scoop.sh