Search in "Files" instead of "Open Editors" does not work when using SSH

Describe the Bug

Hello,

Apparently, when I open the global search using Cmd+Shift+F on my Macbook Pro M4, the search is only done on open editors.

This happens regardless of whether I toggle the “Open editors” book icon or not.

  • I tried reopening Cursor connected using SSH, always the same bug
  • I checked my keybindings for Cmd+Shift+F and it is the “Search in Files” and not “Search in Open editors”

I think this is a bug. Not a major one, but when you want to remove something projectwide, or simply see where something is used, it becomes very problematic.

Steps to Reproduce

Simply connect using SSH when opening a project. Then close all editors, and start a global search for something that you are certain exists at least in one closed file.

Expected Behavior

The global search should show search results for the query from files that are not open but contain an occurence.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.5 (Universal)
VSCode Version: 1.99.3
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290
Date: 2025-08-13T02:08:56.371Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Are you sure the “search only in open editors” is not turned on?

Edit: Forget it, I skipped the part you said where you tried that already.

1 Like

I’m having a similar issue and it’s not even when I’m on SSH. If I disable “search.useIgnoreFiles” then I get results, but something is causing everything to get ignored. When I open this code base in VS code, search works fine so this looks to be a Cursor bug.

here is the log
```

2025-08-15 12:33:44.888 [trace] [Window] SearchService#search {“_reason”:“searchView”,“folderQueries”:[{“folder”:{“$mid”:1,“fsPath”:“/Users/alex/work/edgeimpulse”,“external”:“file:///Users/alex/work/edgeimpulse”,“path”:“/Users/alex/work/edgeimpulse”,“scheme”:“file”},“excludePattern”:[{“pattern”:{“/.git":true,"/.svn”:true,“/.hg":true,"/.DS_Store”:true,“/Thumbs.db":true,"/node_modules”:true,“/bower_components":true,"/.code-search":false,“/build":true,"/dist”:true}}],“fileEncoding”:“utf8”,“disregardIgnoreFiles”:false,“disregardGlobalIgnoreFiles”:false,“disregardParentIgnoreFiles”:false,“ignoreSymlinks”:false}],“usingSearchPaths”:false,“extraFileResources”:[{“$mid”:1,“fsPath”:“/Users/alex/Library/Application Support/Cursor/User/settings.json”,“external”:“vscode-userdata:/Users/alex/Library/Application%20Support/Cursor/User/settings.json”,“path”:“/Users/alex/Library/Application Support/Cursor/User/settings.json”,“scheme”:“vscode-userdata”},{“$mid”:1,“fsPath”:“/Users/alex/Library/Application Support/Cursor/User/keybindings.json”,“external”:“vscode-userdata:/Users/alex/Library/Application%20Support/Cursor/User/keybindings.json”,“path”:“/Users/alex/Library/Application Support/Cursor/User/keybindings.json”,“scheme”:“vscode-userdata”},{“$mid”:1,“fsPath”:“/Users/alex/Library/Application Support/Cursor/User/settings.json”,“external”:“vscode-userdata:/Users/alex/Library/Application%20Support/Cursor/User/settings.json”,“path”:“/Users/alex/Library/Application Support/Cursor/User/settings.json”,“scheme”:“vscode-userdata”}],“onlyOpenEditors”:false,“maxResults”:20000,“type”:2,“contentPattern”:{“pattern”:“EIDSP_USE_ESP_DSP”,“isRegExp”:false,“isCaseSensitive”:false,“isWordMatch”:false,“notebookInfo”:{“isInNotebookMarkdownInput”:true,“isInNotebookMarkdownPreview”:true,“isInNotebookCellInput”:true,“isInNotebookCellOutput”:true},“wordSeparators”:"~!@#$%^&()-=+[{]}\|;:'",.<>/?”},“previewOptions”:{“matchLines”:1,“charsPerLine”:1000},“usePCRE2”:false}
2025-08-15 12:33:44.918 [trace] [Window] SearchService#search: 24ms
```

So you are saying that you are not getting any results at all ? or no “All Files” results (meaning only from “Open editors” ? And when you disable `search.useIgnoreFiles`, then you get results ? Over all files or over the open editors only ?

Have not tried with VSCode on my end though.

Hi,

I found the same bug in my windows cursor IDE. I didn’t use cursor for three weeks because of holiday and made an update today. Since then this function is broken. Three weeks ago this worked fine.

I’m also connected to an SSH in my project. Restart didn’t work. It seems the button “search only in open editors” does not have an effect anymore and is always active.

Version: 1.4.5 (user setup)
VSCode Version: 1.99.3
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290
Date: 2025-08-13T02:08:56.371Z
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Tested:
files to include and exclude works correctly, disabling “search.useIgnoreFiles” has no effect

Thanks to everyone for the report. I’ve forwarded this to the dev team.

2 Likes

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.