An Alfred workflow for opening code folders with Cursor, the AI-powered code editor.
This Alfred workflow allows you to quickly open your code folders in Cursor directly from Alfred. It streamlines your development workflow by providing a fast and efficient way to access your projects.
- Download the latest release of the workflow from the releases page.
- Double-click the downloaded file to install it in Alfred.
- Open Alfred (usually with a keyboard shortcut like
Option + Space
). - Type
cursor
followed by a space. - Start typing the name of the folder you want to open.
- Select the desired folder from the list of results.
- Press
Enter
to open the selected folder in Cursor.
By default, the workflow searches for folders in your home directory. To change the search location:
- Open Alfred Preferences.
- Go to the Workflows tab.
- Find the "Open with Cursor" workflow.
- Double-click the "File Filter" object.
- Select the "Scope" tab.
- Modify the "Search Scope" to change the search path.
- Alfred 4 or later with Powerpack
- Cursor installed on your Mac
If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.
This project was inspired by alfred-open-with-vscode by Steven Dao. Thanks for the great work!
If you encounter a problem where Alfred and Spotlight are unable to search some files and directories, especially after transferring data from an old Mac or restoring from a Time Machine backup, you can try the following solutions:
-
Rebuild the Spotlight Index:
- Follow the instructions provided by Apple to rebuild the Spotlight index: Rebuild the Spotlight index on your Mac.
-
Use Alfred's Built-in Rebuild Index Feature:
- Open Alfred Preferences.
- Go to the "Advanced" tab.
- Click on "Rebuild macOS Metadata" to use Alfred's built-in feature to rebuild the index.
These steps should help resolve the issue and restore the search functionality for your files and directories.