Custom quick edit

Is it possible to allow creating a custom quick edit with a predefined prompt? For example, I frequently need to rewrite sections of code. It would be helpful to create a custom quick edit with a preset prompt like “Rewrite the code…” I could then assign a keyboard shortcut to this action. When I select a portion of code and press the shortcut, it would automatically run the quick edit using the custom prompt—essentially replicating the behavior of pressing Command+K, entering the prompt manually, and hitting Enter.

Since Cursor now has custom modes, another way to implement this would be to allow an empty message in custom modes.

Currently, if I define a custom mode with some system instructions like “make the following changes to the selected code: …”, then after I select a code segment and press the shortcut, it will open the sidebar and wait for a prompt. However, I already have all the instructions in the system prompt for this mode. I would like to simply hit ‘send’. However, this is not allowed, as the ‘send’ button is greyed out for an empty message.