This allows you to save and reuse prompts in Cursor.
You can then add keyboard shortcuts to quickly access and execute them. This is useful if you have a lot of frequently used prompts; such as formatting code, adding documentation, or adding tests. Any wasted keystroke is a waste of time.
Note
This is not an official Cursor extension. It is not affiliated with the Cursor team. It is simply to make some people's lives easier, since often they have to use the same prompts over and over again. You could also use expanso, which I highly recommend for text-expansion, throughout your workflow.
Features
Save frequently used prompts
Add keyboard shortcuts to prompts
(This is done by adding a command to your keybindings.json file)
You should search for the command and then you can add keybindings.
This allows you to recall and execute prompts later
Note: Since cursor doesn't expose the Submit Edit command externally, this will not execute the prompt. You must still do that. If you wanted, you could chain the keyboard shortcuts you make with a third party tool to fire the enter key afterwards.
Usage Instructions
What prompts can be added?
There are two types of prompts that can be added: "quick" and "composer". The quick prompt is the small modal you typically see with CMD+K in cursor. And subsequently, the composer prompt is the other modal, which opens as a bar.
How to add a prompt?
You can either open the command palette and search for "Manage Prompt Shortcuts" to open the shortcut manager or, the preferred method of using the hotkey, cmd+shift+e. That is configurable in the editor settings.
Animated instructions below
(The below instructions are gifs, they should render on the README on GitHub if not directly in markdown).
Opening the shortcut manager and adding a new prompt
Executing a "quick" prompt via a keyboard shortcut
WIP
Better file support with composer prompts; the ability to have cursor recognize the file you've mentioned in the prompt.