Where to re-activate file search using Ctrl-P

In vscode and until recently in Cursor i could simple enter a filename using Ctrl-P
and it would search/find it, even if it wasnt open currently.

Now, for some reason this doesnt work any more, it works just for files that have recently been opened, it seems.

Anyone know where i could search to find the reason?
Which settings is this referring to?

[turns out didnt help: ]
I may have just found a possible solution (having no idea how it was changed in the first place, maybe some accident or extension thing)

so i paste the theoretical solution here,
maybe its interesting for someone else

Ctrl-, > search.quickOpen.includeSymbols = true

BUT it doesnt actually work. :frowning: - i still got the same problem

Hi @daThinky

It should search all the files in your project. Try restarting Cursor.

yes, it should :slight_smile: - I restarted many times, including the computer, it s like this for 1-2 weeks already, using it daily.

thx though! :+1: what you show in the screenshot is how i was used to see/use it as well, until recently.

You might’ve excluded files from the search. Check your settings to see if there’s a rule like this:

"search.exclude": { "**/node_modules/**": true, "**/vendor/**": true}.

Also, in the project folder, there might be a .vscode folder with a settings.json file. Please check it. And if you have a .gitignore file, check if you’ve added any exclusions to it.

1 Like

@daThinky I’m guessing you use vim?
You likely want this for both Ctrl+P anc Ctrl+F:

  "vim.handleKeys": {
    "<C-f>": false,
    "<C-p>": false
  },

I never had this problem with VSCode, so I’m guessing there is a special version of the vim extension for Cursor that annoyingly overrides this. I’ve dealt with this issue for what seems like years and finally decided to search again.

It seems there was an older issue where this was likely solved, but it was somehow removed from the face of the earth. Hopefully that doesn’t happen with this thread.

The old one was:

Ctrl + P stopped working - General
Cursor - Community Forum
https://forum.cursor.com › ctrl-p-stopped-working
28 Nov 2024 — Suddenly the Ctrl + P command to open files is not working any more. I use it constantly… Ctrl + Shift + P for example still works.