Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(extensions): Add Generate Secret & Cursorrules - Developer Productivity Tools #16858

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions extensions/cursorrules/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"root": true,
"extends": ["@raycast"]
}
13 changes: 13 additions & 0 deletions extensions/cursorrules/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules

# Raycast specific files
raycast-env.d.ts
.raycast-swift-build
.swiftpm
compiled_raycast_swift

# misc
.DS_Store
4 changes: 4 additions & 0 deletions extensions/cursorrules/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 120,
"singleQuote": false
}
8 changes: 8 additions & 0 deletions extensions/cursorrules/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Cursorrules Changelog

## [Initial Version] - 2025-02-06

- Initial version of the Cursorrules extension
- Integration with cursorrul.es platform
- Quick access to cursor rules within Raycast
- Search and browse cursor rules functionality
21 changes: 21 additions & 0 deletions extensions/cursorrules/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2025 Nyxb

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
68 changes: 68 additions & 0 deletions extensions/cursorrules/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Cursorrules

Your [cursorrul.es](https://cursorrul.es/) in Raycast.

[![raycast-cross-extension-badge]][raycast-cross-extension-link]

<p align="center">
<img src="assets/demo.gif" width="100%" align="center" />
</p>

## Overview

Cursorrules is a powerful Raycast extension that seamlessly integrates with [cursorrul.es](https://cursorrul.es/), allowing users to access, search, and utilize cursor rules directly within the Cursor Code Editor. This extension streamlines the process of finding and implementing cursor rules and provides learning resources for Cursor IDE users.

## Features

- **Fuzzy Search**: Quickly find cursor rules based on their titles.
- **Detailed View**: Examine cursor rules, including author information and full rule content.
- **One-Click Application**: Easily copy and create cursor rules to your project's `.cursor/rules` folder for Cursor v0.45 or `.cursorrules` for Cursor below v0.45.
- **Starring System**: Save up to 10 favorite cursor rules for quick access.
- **Local Modification**: Export and edit cursor rules as Markdown files within Cursor.
- **Learning Resources**: Access curated Cursor tutorials, guides, and videos directly from the extension.

## Installation

1. Ensure you have [Raycast](https://www.raycast.com/) installed on your system.
2. Install the Cursor Directory extension through the [Raycast store](https://www.raycast.com/escwxyz/cursor-directory) or Raycast's store command.

## Usage Guide

1. **Launching the Extension**:
- Open Raycast and type `cursorrules` to use the commands.

2. **Searching for Cursor Rules**:
- Use the fuzzy search functionality to find rules based on their titles.

3. **Toggle Detailed View**:
- Press `Cmd + D` to toggle the detailed view of a rule.

4. **Copy and Apply Cursor Rules**:
- Press `Cmd + Shift + C` to copy the rule content to your clipboard.
- You can then choose to open recent projects to apply the rule directly, or press `Esc` to manually apply the rule to where you want.
- If you have configured the default `Projects Directory`, you will be using the builtin `projects` command to open projects, otherwise you will be prompted to select recent projects via `degouville/cursor-recent-projects` extension, which is also optional.

5. **Starring Rules**:
- Star up to 10 cursor rules for quick access in future sessions via `Cmd + Shift + P`.

6. **Local Modification**:
- Press `Cmd + E` to open the cursor rule as a Markdown file in Cursor for editing.

7. **Learning Resources**:
- Access curated Cursor tutorials and videos via the `Learn Cursor` command.
- Browse through a collection of educational content to master Cursor IDE.

## Configuration

Access the extension preferences through the Action Panel or Raycast preferences to customize your experience:

- Cache Duration: Cursor rule data is cached locally for 1 day by default.
- Show Detailed View: Toggle the display of detailed view in cursor rules list.
- Default Cursor Rules List: Choose to show all cursor rules or only popular ones in cursor rules list at launch.
- Export Directory: Set the directory to export cursor rules locally.
- Skip Confirmation on Copy: Skip confirmation on copying a cursor rule.
- Replace on Launch: Configure if replace or append rule content in launch context.
- Projects Directory: Set the directory to store your projects.

[raycast-cross-extension-badge]: https://shields.io/badge/Raycast-Cross--Extension-eee?labelColor=FF6363&logo=raycast&logoColor=fff&style=flat-square
[raycast-cross-extension-link]: https://github.com/LitoMore/raycast-cross-extension-conventions
Binary file added extensions/cursorrules/assets/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/cursorrules/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading