getcursor / cursor

The AI Code Editor
https://cursor.com
24.12k stars 1.51k forks source link

Ctrl-Shift-Enter (codebase search) is no longer working in Composer, v.0.41.3 #2020

Open v-karbovnichy opened 1 week ago

v-karbovnichy commented 1 week ago

OS: host Win11, code in remote workspace in WSL2 (Ubuntu 22.04.02 LTS) Cursor: 0.41.1, 0.41.2, 0.41.3

Steps to reproduce:

  1. Open a new Composer
  2. Remove all the auto-included files from the context
  3. Write a prompt "what are the tables in my prisma schema?"
  4. Press Ctrl-Shift-Enter

Expected result: 12 tables are listed (my project-specific info) Actual result: the prompt is not even submitted. Pressing just Enter does not yield any meaningful context: "...since I don't have direct access to your project files, I can provide you with a general approach to find this information..."


Entire codebase knowledge (not having to add 15 files manually for my prompt) plus applying changes directly to files (diff mode) was the killer feature and reason I switched to Cursor from other products like TabNine, GitHub CoPilot, etc. and advertised Cursor to all of my friends.

Now there are half-baked options for me:

I think codebase search in Composer was some kind of a "hidden" feature" becase there were no button for it, but pressing Ctrl-Shift-Enter worked the same way like in Chat.

v-karbovnichy commented 1 week ago

Some more info.

I found how to install previous versions with a great help from #1143

So, installed and tried:

Additionally, I don't really understand now how I found Ctrl-Shift-Enter key combination, because Chat button shows as "ctrl-enter codebase", and Composer does not have that button at all. Don't ask me, I can't say. I changed the issue description and repro steps to mention Ctrl-Shift-Enter as simple Ctrl-Enter does not work in Composer even in 0.40.4. So this is really a "hidden" feature.

However, this feature is a greatest achievement among all of the other things. Remove Cursor Tab, Chat, all other features and I will still buy Cursor. I had made entire functional pages of my Next.js monorepo app with this, changing db schema, DAL, API route, UI components in library, app UI page in one composer. I don't basically even need in-line autocompletion anymore, this thing works on a higher level suggestiong functional changes including all the small changes needed that previously were made manually with inline autocompletion help.

Things switched in my head when Composer was able to find and fix pagination bug in one go from the prompt "I have a pagination bug when second and pre-last page buttons are not displayed". I did not put anything into context, and it found where that UI component was in the project tree, what was wrong there, and how to fix it. Just astonishing.

v-karbovnichy commented 1 week ago

v0.40.4 does not have ability to dock Composer in right pane - I like that new thing but can live without it until the codebase search is again available.